Skip to content

Commit

Permalink
chore(plugin): expose optional default features for wasm plugin test
Browse files Browse the repository at this point in the history
  • Loading branch information
aircloud committed Apr 17, 2022
1 parent 29ff9cb commit 1d8376d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ concurrent = [
debug = ["swc_ecma_visit/debug"]
node = ["napi", "napi-derive"]
plugin = ["swc_plugin_runner", "swc_plugin_proxy/plugin-rt"]
swc_plugin_runner_default = ["swc_plugin_runner/default"]
wasmer_default = ["swc_plugin_runner/wasmer_default"]
wasmer_wasi_default = ["swc_plugin_runner/wasmer_wasi_default"]

[dependencies]
ahash = "0.7.4"
Expand Down
2 changes: 2 additions & 0 deletions crates/swc_plugin_runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ filesystem_cache = ["wasmer-cache"]
# Supports a cache allow to store wasm module in-memory. This avoids recompilation
# to the same module in a single procress lifecycle.
memory_cache = []
wasmer_default = ["wasmer/default"]
wasmer_wasi_default = ["wasmer-wasi/default"]

[dependencies]
anyhow = "1.0.42"
Expand Down

0 comments on commit 1d8376d

Please sign in to comment.