Skip to main content

enhanced_transform

Function enhanced_transform 

Source
pub fn enhanced_transform(
    filename: &str,
    source_text: &str,
    transform_options: EnhancedTransformOptions,
    yarn_pnp: bool,
) -> EnhancedTransformResult
Expand description

Transform source code using the internal Oxc parser and transformer.

ยงArguments

  • filename - The filename (used for source type detection and error reporting)
  • source_text - The source code to transform
  • transform_options - Transform options including tsconfig and sourcemap settings
  • yarn_pnp - Whether to enable Yarn PnP support when resolving tsconfig