Cargo Features

swc_ecma_transforms has no features set by default.

[dependencies]
swc_ecma_transforms = { version = "0.229.10", features = ["compat", "concurrent", "module", "multi-module-decorator", "optimization", "proposal", "react", "typescript"] }
compat = swc_ecma_transforms_compat
concurrent

Enables concurrent of swc_ecma_transforms_compat, swc_ecma_transforms_optimization, and swc_ecma_transforms_react

module = swc_ecma_transforms_module
multi-module-decorator

Enables multi-module of swc_ecma_transforms_proposal

optimization = swc_ecma_transforms_optimization
proposal = swc_ecma_transforms_proposal
react = swc_ecma_transforms_react
typescript = swc_ecma_transforms_typescript

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

swc_ecma_transforms_compat compat? concurrent?
swc_ecma_transforms_module module?
swc_ecma_transforms_optimization concurrent? optimization?
swc_ecma_transforms_proposal multi-module-decorator? proposal?
swc_ecma_transforms_react concurrent? react?
swc_ecma_transforms_typescript typescript?