diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 989abed6a09f..e95e8b0481d7 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -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" diff --git a/crates/swc_plugin_runner/Cargo.toml b/crates/swc_plugin_runner/Cargo.toml index c5e9e8f0f756..4b02a3ac83b7 100644 --- a/crates/swc_plugin_runner/Cargo.toml +++ b/crates/swc_plugin_runner/Cargo.toml @@ -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"