@@ -46,10 +46,14 @@ plugin_transform_schema_vtest = [
4646
4747# Enable wasmer plugin runtime implement
4848plugin_backend_wasmer = [" swc_plugin_backend_wasmer" ]
49+ # Enable wasmtime plugin runtime implement
50+ plugin_backend_wasmtime = [" swc_plugin_backend_wasmtime" ]
4951
50- plugin_transform_host_js = [" swc_plugin_backend_wasmer/plugin_transform_host_js" ]
52+ plugin_transform_host_js = [
53+ " swc_plugin_backend_wasmer?/plugin_transform_host_js" ,
54+ ]
5155plugin_transform_host_native = [
52- " swc_plugin_backend_wasmer/plugin_transform_host_native" ,
56+ " swc_plugin_backend_wasmer? /plugin_transform_host_native" ,
5357]
5458# Do not inject tokio runtime while running plugin transforms
5559manual-tokio-runtime = []
@@ -94,7 +98,9 @@ swc_ecma_loader = { version = "15.0.0", path = "../swc_ecma_loader", features =
9498 " tsc" ,
9599] }
96100swc_ecma_minifier = { version = " 34.0.2" , path = " ../swc_ecma_minifier" }
97- swc_ecma_parser = { version = " 25.0.0" , path = " ../swc_ecma_parser" , default-features = false , features = [" typescript" ] }
101+ swc_ecma_parser = { version = " 25.0.0" , path = " ../swc_ecma_parser" , default-features = false , features = [
102+ " typescript" ,
103+ ] }
98104swc_ecma_preset_env = { version = " 37.0.0" , path = " ../swc_ecma_preset_env" }
99105swc_ecma_transforms = { version = " 36.0.0" , path = " ../swc_ecma_transforms" , features = [
100106 " compat" ,
@@ -111,9 +117,10 @@ swc_ecma_utils = { version = "22.0.0", path = "../swc_ecma_utils" }
111117swc_ecma_visit = { version = " 16.0.0" , path = " ../swc_ecma_visit" }
112118swc_error_reporters = { version = " 17.0.0" , path = " ../swc_error_reporters" }
113119swc_node_comments = { version = " 15.0.0" , path = " ../swc_node_comments" }
120+ swc_plugin_backend_wasmer = { version = " 3.0.0" , path = " ../swc_plugin_backend_wasmer" , optional = true , default-features = false }
121+ swc_plugin_backend_wasmtime = { version = " 2.0.0" , path = " ../swc_plugin_backend_wasmtime" , optional = true , default-features = false }
114122swc_plugin_proxy = { version = " 16.0.0" , path = " ../swc_plugin_proxy" , optional = true }
115123swc_plugin_runner = { version = " 20.0.0" , path = " ../swc_plugin_runner" , optional = true , default-features = false }
116- swc_plugin_backend_wasmer = { version = " 3.0.0" , path = " ../swc_plugin_backend_wasmer" , optional = true , default-features = false }
117124swc_timer = { version = " 1.0.0" , path = " ../swc_timer" }
118125swc_transform_common = { version = " 9.0.0" , path = " ../swc_transform_common" }
119126swc_typescript = { version = " 21.0.0" , path = " ../swc_typescript" , optional = true }
0 commit comments