Skip to content

Commit

Permalink
Fix features
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Aug 16, 2022
1 parent bcc3251 commit 233f494
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions packages/next-swc/Cargo.lock

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

3 changes: 2 additions & 1 deletion packages/next-swc/crates/napi/Cargo.toml
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion packages/next-swc/crates/wasm/Cargo.toml
Expand Up @@ -9,6 +9,7 @@ crate-type = ["cdylib"]

[features]
plugin = [
"swc_core/plugin_transform_host_js",
"swc/plugin",
"swc_plugin_runner/memory_cache",
"getrandom/js"
Expand All @@ -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"

0 comments on commit 233f494

Please sign in to comment.