From 233f4945fc8fbae0602b9ca91d157bbcd75cd38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 17 Aug 2022 00:25:40 +0900 Subject: [PATCH] Fix features --- packages/next-swc/Cargo.lock | 3 --- packages/next-swc/crates/napi/Cargo.toml | 3 ++- packages/next-swc/crates/wasm/Cargo.toml | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/next-swc/Cargo.lock b/packages/next-swc/Cargo.lock index 685107b2e0754..11bb933f82a82 100644 --- a/packages/next-swc/Cargo.lock +++ b/packages/next-swc/Cargo.lock @@ -4531,7 +4531,6 @@ dependencies = [ "wasmer-derive", "wasmer-types", "wasmer-vm", - "wasmparser", "wat", "winapi", ] @@ -4636,7 +4635,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53be0690ef53117068c89c20440a04381bb6ee42c9573b8d5dada30559ea042d" dependencies = [ "libc", - "slab", "thiserror", "tracing", ] @@ -4685,7 +4683,6 @@ checksum = "a37eb23498f5ceabed59144c6b6707707b7ff8dc40ef70bd1d289a657816f729" dependencies = [ "bytes", "cfg-if 1.0.0", - "chrono", "derivative", "generational-arena", "getrandom", diff --git a/packages/next-swc/crates/napi/Cargo.toml b/packages/next-swc/crates/napi/Cargo.toml index 3b2248246787e..c77d018d98266 100644 --- a/packages/next-swc/crates/napi/Cargo.toml +++ b/packages/next-swc/crates/napi/Cargo.toml @@ -14,6 +14,7 @@ default = [] # this is due to some of transitive dependencies have features cannot be enabled at the same time # (i.e wasmer/default vs wasmer/js-default) while cargo merges all the features at once. plugin = [ + "swc_core/plugin_transform_host_native", "swc/plugin", "swc_plugin_runner/default", "next-swc/plugin" @@ -43,7 +44,7 @@ tracing = { version = "0.1.32", features = ["release_max_level_info"] } tracing-futures = "0.2.5" tracing-subscriber = "0.3.9" tracing-chrome = "0.5.0" -swc_core={version="0.7.16",features=["plugin_transform_host_native"]} +swc_core={version="0.7.16"} # There are few build targets we can't use native-tls which default features rely on, # allow to specify alternative (rustls) instead via features. diff --git a/packages/next-swc/crates/wasm/Cargo.toml b/packages/next-swc/crates/wasm/Cargo.toml index cab4fc8f6a602..12c418b7463c3 100644 --- a/packages/next-swc/crates/wasm/Cargo.toml +++ b/packages/next-swc/crates/wasm/Cargo.toml @@ -9,6 +9,7 @@ crate-type = ["cdylib"] [features] plugin = [ + "swc_core/plugin_transform_host_js", "swc/plugin", "swc_plugin_runner/memory_cache", "getrandom/js" @@ -30,6 +31,6 @@ swc_plugin_runner = { version = "0.71.12", default-features = false, optional = tracing = { version = "0.1.32", features = ["release_max_level_off"] } wasm-bindgen = {version = "0.2", features = ["serde-serialize", "enable-interning"]} wasm-bindgen-futures = "0.4.8" -swc_core={version="0.7.16",features=["plugin_transform_host_js"]} +swc_core={version="0.7.16"} getrandom = { version = "0.2.5", optional = true, default-features = false } js-sys = "0.3.59"