Cargo Features

deno_ast has no features set by default.

[dependencies]
deno_ast = { version = "1.0.1", features = ["bundler", "cjs", "codegen", "compat", "dep_analysis", "dep_graph", "module_specifier", "proposal", "react", "scopes", "sourcemap", "transforms", "transpiling", "typescript", "utils", "view", "visit"] }
bundler = swc_bundler, swc_ecma_transforms_optimization, swc_graph_analyzer
cjs = utils, visit
codegen transpiling? = 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

dep_graph = swc_ecma_dep_graph
module_specifier transpiling? = url

Enables module_specifier of deno_media_type

Affects deno_ast::ModuleSpecifier

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 transpiling?

Enables sourcemap of dprint-swc-ext ^0.13.0

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

Affects deno_ast::swc.transforms

transpiling = anyhow, base64, codegen, module_specifier, proposal, react, sourcemap, 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.13.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.

anyhow transpiling?
base64 transpiling?
url module_specifier?
swc_config compat? react?

Enables swc_config =0.1.9

swc_config_macro compat? react?
swc_ecma_codegen codegen?

Enables swc_ecma_codegen =0.146.54

swc_ecma_codegen_macros codegen?
swc_ecma_loader transforms?

Enables swc_ecma_loader =0.45.13

swc_ecma_transforms_base transforms?

Enables swc_ecma_transforms_base =0.135.11

swc_ecma_transforms_classes proposal?

Enables swc_ecma_transforms_classes =0.124.11

swc_ecma_transforms_compat compat?

Enables swc_ecma_transforms_compat =0.161.14

swc_ecma_transforms_macros proposal? react?
swc_ecma_transforms_optimization bundler?

Enables swc_ecma_transforms_optimization =0.196.14

swc_ecma_transforms_proposal proposal?

Enables swc_ecma_transforms_proposal =0.169.14

swc_ecma_transforms_react react?

Enables swc_ecma_transforms_react =0.181.15

swc_ecma_transforms_typescript typescript?

Enables swc_ecma_transforms_typescript =0.186.14

swc_ecma_utils utils?

Enables swc_ecma_utils =0.125.4

swc_ecma_visit visit?

Enables swc_ecma_visit =0.96.17

swc_bundler bundler?

Enables swc_bundler =0.223.15

swc_graph_analyzer bundler?

Enables swc_graph_analyzer =0.22.15

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

Enables swc_visit =0.5.8

swc_visit_macros visit?

Enables swc_visit_macros =0.5.9

swc_ecma_dep_graph dep_graph?

Enables swc_ecma_dep_graph

todo(dsherret): remove this on the next breaking deno_ast change