Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ plugin_transform_schema_vtest = [

# Enable wasmer plugin runtime implement
plugin_backend_wasmer = ["swc_plugin_backend_wasmer"]
# Enable wasmtime plugin runtime implement
plugin_backend_wasmtime = ["swc_plugin_backend_wasmtime"]

plugin_transform_host_js = ["swc_plugin_backend_wasmer/plugin_transform_host_js"]
plugin_transform_host_js = [
"swc_plugin_backend_wasmer?/plugin_transform_host_js",
]
plugin_transform_host_native = [
"swc_plugin_backend_wasmer/plugin_transform_host_native",
"swc_plugin_backend_wasmer?/plugin_transform_host_native",
]
# Do not inject tokio runtime while running plugin transforms
manual-tokio-runtime = []
Expand Down Expand Up @@ -94,7 +98,9 @@ swc_ecma_loader = { version = "15.0.0", path = "../swc_ecma_loader", features =
"tsc",
] }
swc_ecma_minifier = { version = "34.0.2", path = "../swc_ecma_minifier" }
swc_ecma_parser = { version = "25.0.0", path = "../swc_ecma_parser", default-features = false, features = ["typescript"] }
swc_ecma_parser = { version = "25.0.0", path = "../swc_ecma_parser", default-features = false, features = [
"typescript",
] }
swc_ecma_preset_env = { version = "37.0.0", path = "../swc_ecma_preset_env" }
swc_ecma_transforms = { version = "36.0.0", path = "../swc_ecma_transforms", features = [
"compat",
Expand All @@ -111,9 +117,10 @@ swc_ecma_utils = { version = "22.0.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "16.0.0", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "17.0.0", path = "../swc_error_reporters" }
swc_node_comments = { version = "15.0.0", path = "../swc_node_comments" }
swc_plugin_backend_wasmer = { version = "3.0.0", path = "../swc_plugin_backend_wasmer", optional = true, default-features = false }
swc_plugin_backend_wasmtime = { version = "2.0.0", path = "../swc_plugin_backend_wasmtime", optional = true, default-features = false }
swc_plugin_proxy = { version = "16.0.0", path = "../swc_plugin_proxy", optional = true }
swc_plugin_runner = { version = "20.0.0", path = "../swc_plugin_runner", optional = true, default-features = false }
swc_plugin_backend_wasmer = { version = "3.0.0", path = "../swc_plugin_backend_wasmer", optional = true, default-features = false }
swc_timer = { version = "1.0.0", path = "../swc_timer" }
swc_transform_common = { version = "9.0.0", path = "../swc_transform_common" }
swc_typescript = { version = "21.0.0", path = "../swc_typescript", optional = true }
Expand Down
5 changes: 4 additions & 1 deletion crates/swc_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ plugin_transform_host_native_shared_runtime = []
# Enable wasmer plugin runtime implement
plugin_backend_wasmer = ["swc/plugin_backend_wasmer"]

# Enable wasmtime plugin runtime implement
plugin_backend_wasmtime = ["swc/plugin_backend_wasmtime"]

# Enable parallel execution of various modules, including minifier using chili
parallel_chili = ["par-core/chili"]
# Enable parallel execution of various modules, including minifier using rayon
Expand Down Expand Up @@ -307,8 +310,8 @@ __plugin_transform_host = [
]

# Internal flags to control plugin environment
__plugin_transform_env_js = ["swc/plugin_transform_host_js"]
__plugin_transform_env_native = ["swc/plugin_transform_host_native"]
__plugin_transform_env_js = ["swc/plugin_transform_host_js"]

# Do not use: testing purpose only
# Force enable different version of AST schema
Expand Down
Loading