Replace wasmer with wasmtime for SWC plugin WASM engine
Swap out swc_plugin_backend_wasmer (wasmer 6.1.0-rc) with a new swc_plugin_backend_wasmtime crate to reduce native binary size. - Create crates/swc-plugin-backend-wasmtime implementing the swc_plugin_runner Runtime/Instance/Caller traits via wasmtime - Update workspace Cargo.toml: add wasmtime deps, remove wasmer deps and release profiles - Wire WasmtimeRuntime into both code paths: - Turbopack: turbopack-ecmascript-plugins - Webpack/SWC NAPI: next-napi-bindings transform.rs - Remove swc_core/plugin_backend_wasmer feature flag usage - Integration points designed for future swappability (e.g. Node NAPI WASM engine)
Showing
This diff is collapsed.
Please
register
or
sign in
to comment