diff --git a/Cargo.lock b/Cargo.lock index 5f42a2cb895..b0ce2b072ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1651,6 +1651,7 @@ dependencies = [ "swc_ecma_parser", "swc_node_base", "swc_node_bundler", + "swc_plugin_runner", "tracing", "tracing-chrome", "tracing-futures", @@ -4496,7 +4497,7 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasm" -version = "1.2.158" +version = "1.2.159" dependencies = [ "anyhow", "console_error_panic_hook", diff --git a/crates/node/Cargo.toml b/crates/node/Cargo.toml index aead91221f9..426e8d3acb5 100644 --- a/crates/node/Cargo.toml +++ b/crates/node/Cargo.toml @@ -13,42 +13,43 @@ crate-type = ["cdylib"] [features] default = ["swc_v1", "plugin"] -plugin = ["swc/plugin", "wasmer/default", "wasmer-wasi/default"] +plugin = ["swc/plugin", "swc_plugin_runner/default", "wasmer/default", "wasmer-wasi/default"] swc_v1 = ["swc_node_bundler/swc_v1"] swc_v2 = ["swc_node_bundler/swc_v2"] [build-dependencies] -napi-build = { version = "1" } +napi-build = {version = "1"} [dependencies] anyhow = "1" backtrace = "0.3" -napi = { version = "2", default-features = false, features = [ +napi = {version = "2", default-features = false, features = [ "napi3", "serde-json", -] } -napi-derive = { version = "2", default-features = false, features = [ +]} +napi-derive = {version = "2", default-features = false, features = [ "type-def", -] } -node_macro_deps = { path = "../node_macro_deps" } +]} +node_macro_deps = {path = "../node_macro_deps"} path-clean = "0.1" -serde = { version = "1", features = ["derive"] } -serde_json = { version = "1", features = ["unbounded_depth"] } -swc = { path = "../swc", features = ["concurrent", "node"] } -swc_atoms = { version = "0.2.4", path = "../swc_atoms" } -swc_bundler = { path = "../swc_bundler" } -swc_common = { path = "../swc_common", features = ["sourcemap"] } -swc_ecma_ast = { path = "../swc_ecma_ast" } -swc_ecma_lints = { path = "../swc_ecma_lints", features = [ +serde = {version = "1", features = ["derive"]} +serde_json = {version = "1", features = ["unbounded_depth"]} +swc = {path = "../swc", features = ["concurrent", "node"]} +swc_atoms = {version = "0.2.4", path = "../swc_atoms"} +swc_bundler = {path = "../swc_bundler"} +swc_common = {path = "../swc_common", features = ["sourcemap"]} +swc_ecma_ast = {path = "../swc_ecma_ast"} +swc_ecma_lints = {path = "../swc_ecma_lints", features = [ "non_critical_lints", -] } -swc_ecma_loader = { path = "../swc_ecma_loader" } -swc_ecma_parser = { path = "../swc_ecma_parser" } -swc_node_base = { path = "../swc_node_base" } -swc_node_bundler = { path = "../swc_node_bundler" } -tracing = { version = "0.1.32", features = ["release_max_level_info"] } +]} +swc_ecma_loader = {path = "../swc_ecma_loader"} +swc_ecma_parser = {path = "../swc_ecma_parser"} +swc_node_base = {path = "../swc_node_base"} +swc_node_bundler = {path = "../swc_node_bundler"} +swc_plugin_runner = {path = "../swc_plugin_runner"} +tracing = {version = "0.1.32", features = ["release_max_level_info"]} tracing-chrome = "0.4.0" tracing-futures = "0.2.5" -tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } -wasmer = { version = "2.2.0", optional = true, default-features = false } -wasmer-wasi = { version = "2.2.0", optional = true, default-features = false } \ No newline at end of file +tracing-subscriber = {version = "0.3.9", features = ["env-filter"]} +wasmer = {version = "2.2.0", optional = true, default-features = false} +wasmer-wasi = {version = "2.2.0", optional = true, default-features = false} diff --git a/crates/wasm/Cargo.toml b/crates/wasm/Cargo.toml index a02995e9732..4baea8cb963 100644 --- a/crates/wasm/Cargo.toml +++ b/crates/wasm/Cargo.toml @@ -6,7 +6,7 @@ license = "Apache-2.0" name = "wasm" publish = false repository = "https://github.com/swc-project/swc.git" -version = "1.2.158" +version = "1.2.159" [lib] crate-type = ["cdylib"] @@ -30,15 +30,15 @@ console_error_panic_hook = "0.1.6" once_cell = "1.10.0" parking_lot_core = "0.9.1" path-clean = "0.1" -serde = { version = "1", features = ["derive"] } +serde = {version = "1", features = ["derive"]} serde_json = "1" -swc = { path = "../swc" } -swc_common = { path = "../swc_common" } -swc_ecma_lints = { path = "../swc_ecma_lints", features = [ +swc = {path = "../swc"} +swc_common = {path = "../swc_common"} +swc_ecma_lints = {path = "../swc_ecma_lints", features = [ "non_critical_lints", -] } -swc_ecmascript = { path = "../swc_ecmascript" } -tracing = { version = "0.1.32", features = ["release_max_level_off"] } -wasm-bindgen = { version = "0.2", features = ["serde-serialize"] } -wasmer = { version = "2.2.0", optional = true, default-features = false } -wasmer-wasi = { version = "2.2.0", optional = true, default-features = false } +]} +swc_ecmascript = {path = "../swc_ecmascript"} +tracing = {version = "0.1.32", features = ["release_max_level_off"]} +wasm-bindgen = {version = "0.2", features = ["serde-serialize"]} +wasmer = {version = "2.2.0", optional = true, default-features = false} +wasmer-wasi = {version = "2.2.0", optional = true, default-features = false} diff --git a/package.json b/package.json index e9e8344959b..a4656b16ffd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@swc/core", - "version": "1.2.158", + "version": "1.2.159", "description": "Super-fast alternative for babel", "homepage": "https://swc.rs", "main": "./index.js",