Expand description
TypeScript to JavaScript transpilation using oxc
This module provides TypeScript transpilation using oxc_transformer for parsing, transformation, and code generation.
Functions§
- bundle_
module - Bundle a module and all its local imports into a single file with proper scoping Each module is wrapped in an IIFE that only exposes its exports
- has_
es_ imports - Check if source contains ES module imports (import … from …) Kept for backwards compatibility
- has_
es_ module_ syntax - Check if source contains ES module syntax (imports or exports) This determines if the code needs bundling to work with QuickJS eval
- strip_
imports_ and_ exports - Strip import statements and export keywords from source using AST transformation Converts ES module syntax to plain JavaScript that QuickJS can eval
- transpile_
typescript - Transpile TypeScript source code to JavaScript