Skip to content

Commit

Permalink
chore(plugin): add plugin-dev feature
Browse files Browse the repository at this point in the history
  • Loading branch information
aircloud committed Apr 20, 2022
1 parent 723eaa6 commit 7a094df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ concurrent = [
debug = ["swc_ecma_visit/debug"]
node = ["napi", "napi-derive"]
plugin = ["swc_plugin_runner", "swc_plugin_proxy/plugin-rt"]
# For developers who use the `plugin` feature directly in rust:
plugin-dev = ["plugin", "swc_plugin_runner/filesystem_cache", "swc_plugin_runner/plugin-dev"]

[dependencies]
ahash = "0.7.4"
Expand Down
1 change: 1 addition & 0 deletions crates/swc_plugin_runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ 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 = []
plugin-dev = ["wasmer/default", "wasmer-wasi/default"]

[dependencies]
anyhow = "1.0.42"
Expand Down

0 comments on commit 7a094df

Please sign in to comment.