Cargo Features

deno_ast has no features set by default.

[dependencies]
deno_ast = { version = "0.46.6", features = ["bundler", "concurrent", "cjs", "codegen", "compat", "dep_analysis", "proposal", "react", "scopes", "sourcemap", "transforms", "emit", "transpiling", "typescript", "utils", "view", "visit"] }
bundler = swc_bundler, swc_ecma_transforms_optimization, swc_graph_analyzer
concurrent

Enables concurrent of swc_common =8.1.1

cjs = utils, visit
codegen emit? = swc_ecma_codegen, swc_ecma_codegen_macros, swc_macros_common
compat = swc_config, swc_config_macro, swc_ecma_transforms_compat, swc_trace_macro, transforms
dep_analysis = visit

Affects deno_ast::dep

proposal transpiling? = swc_ecma_transforms_classes, swc_ecma_transforms_macros, swc_ecma_transforms_proposal, swc_macros_common, transforms
react transpiling? = swc_config, swc_config_macro, swc_ecma_transforms_macros, swc_ecma_transforms_react, swc_macros_common, transforms
scopes = utils, view, visit
sourcemap emit?

Enables sourcemap of dprint-swc-ext

transforms compat? proposal? react? transpiling? typescript? = swc_ecma_loader, swc_ecma_transforms_base

Affects deno_ast::swc.transforms

emit transpiling? = base64, codegen, sourcemap

Enables sourcemap

just for error handling

transpiling = emit, proposal, react, transforms, typescript, utils, visit
typescript transpiling? = swc_ecma_transforms_typescript, transforms
utils cjs? scopes? transpiling? = swc_ecma_utils
view scopes?

Enables view of dprint-swc-ext

visit cjs? dep_analysis? scopes? transpiling? = swc_ecma_visit, swc_macros_common, swc_visit, swc_visit_macros

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.

base64 emit?
swc_config compat? react?
swc_config_macro compat? react?
swc_ecma_codegen codegen?

Enables swc_ecma_codegen =10.0.0

swc_ecma_codegen_macros codegen?
swc_ecma_loader transforms?

Enables swc_ecma_loader =8.0.0

swc_ecma_transforms_base transforms?

Enables swc_ecma_transforms_base =12.2.0

swc_ecma_transforms_classes proposal?

Enables swc_ecma_transforms_classes =12.0.0

swc_ecma_transforms_compat compat?

Enables swc_ecma_transforms_compat =13.0.0

swc_ecma_transforms_macros proposal? react?
swc_ecma_transforms_optimization bundler?

Enables swc_ecma_transforms_optimization =12.0.0

swc_ecma_transforms_proposal proposal?

Enables swc_ecma_transforms_proposal =12.0.2

swc_ecma_transforms_react react?

Enables swc_ecma_transforms_react =13.0.1

swc_ecma_transforms_typescript typescript?

Enables swc_ecma_transforms_typescript =13.0.0

swc_ecma_utils utils?

Enables swc_ecma_utils =12.0.1

swc_ecma_visit visit?

Enables swc_ecma_visit =8.0.0

swc_bundler bundler?

Enables swc_bundler =15.0.0

swc_graph_analyzer bundler?

Enables swc_graph_analyzer =9.0.0

swc_macros_common codegen? proposal? react? visit?
swc_trace_macro compat?

Enables swc_trace_macro =2.0.0

swc_visit visit?
swc_visit_macros visit?