Cargo Features
OXC has no features set by default.
[dependencies]
oxc = { version = "0.37.0", features = ["full", "parser", "semantic", "transformer", "minifier", "codegen", "mangler", "cfg", "isolated_declarations", "serialize", "sourcemap", "sourcemap_concurrent", "wasm", "napi"] }
- full = cfg, codegen, isolated_declarations, mangler, minifier, semantic, sourcemap, transformer
- parser
-
for napi
Affects
napi::parse
… - semantic full? = oxc_semantic
-
Affects
oxc::semantic
… - transformer full? = oxc_transformer
-
Affects
oxc::transformer
,napi::transform
… - minifier full? = oxc_mangler, oxc_minifier
-
Affects
oxc::minifier
… - codegen full? = oxc_codegen
-
Affects
oxc::codegen
… - mangler full? = oxc_mangler
-
Affects
oxc::mangler
… - cfg full? = oxc_cfg
-
Affects
oxc::cfg
… - isolated_declarations full? = oxc_isolated_declarations
-
Affects
oxc::isolated_declarations
,napi::isolated_declarations
… - serialize
-
Enables serialize of oxc_ast, optional oxc_semantic, oxc_span, and oxc_syntax
- sourcemap full? sourcemap_concurrent? = oxc_sourcemap
-
Affects
oxc::sourcemap
,napi::source_map
… - sourcemap_concurrent = sourcemap
-
Enables concurrent of oxc_sourcemap
- wasm
-
Enables wasm of oxc_transformer
- napi
-
Enables napi, napi-derive, and rustc-hash
Affects
oxc::napi
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.