Cargo Features

deno_ast has no features set by default.

[dependencies]
deno_ast = { version = "0.40.0", features = ["bundler", "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
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 ^0.17.0

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

Affects deno_ast::swc.transforms

emit transpiling? = anyhow, base64, codegen, sourcemap
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 ^0.17.0

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.

anyhow emit?
base64 emit?

Enables base64 ^0.21.6

swc_config compat? react?
swc_config_macro compat? react?
swc_ecma_codegen codegen?

Enables swc_ecma_codegen =0.151.1

swc_ecma_codegen_macros codegen?

Enables swc_ecma_codegen_macros =0.7.6

swc_ecma_loader transforms?

Enables swc_ecma_loader =0.46.1

swc_ecma_transforms_base transforms?

Enables swc_ecma_transforms_base =0.140.3

swc_ecma_transforms_classes proposal?

Enables swc_ecma_transforms_classes =0.129.0

swc_ecma_transforms_compat compat?

Enables swc_ecma_transforms_compat =0.166.1

swc_ecma_transforms_macros proposal? react?
swc_ecma_transforms_optimization bundler?

Enables swc_ecma_transforms_optimization =0.201.2

swc_ecma_transforms_proposal proposal?

Enables swc_ecma_transforms_proposal =0.174.3

swc_ecma_transforms_react react?

Enables swc_ecma_transforms_react =0.186.2

swc_ecma_transforms_typescript typescript?

Enables swc_ecma_transforms_typescript =0.191.2

swc_ecma_utils utils?

Enables swc_ecma_utils =0.130.3

swc_ecma_visit visit?

Enables swc_ecma_visit =0.101.0

swc_bundler bundler?

Enables swc_bundler =0.230.2

swc_graph_analyzer bundler?

Enables swc_graph_analyzer =0.23.0

swc_macros_common codegen? proposal? react? visit?

Enables swc_macros_common =0.3.11

swc_trace_macro compat?
swc_visit visit?

Enables swc_visit =0.5.14

swc_visit_macros visit?

Enables swc_visit_macros =0.5.12