Struct swc::PassBuilder[][src]

pub struct PassBuilder<'a, 'b, P: Fold> { /* fields omitted */ }
Expand description

Builder is used to create a high performance Compiler.

Implementations

Note: fixer is enabled by default.

Note: hygiene is enabled by default.

If you pass None to this method, the hygiene pass will be disabled.

Arguments

module

  • Use None if you want swc to emit import statements.

Returned pass includes

  • compatibility helper
  • module handler
  • helper injector
  • identifier hygiene handler if enabled
  • fixer if enabled

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.