diff --git a/crates/swc_plugin_runner/src/cache.rs b/crates/swc_plugin_runner/src/cache.rs index 5d274b9facc7..0e750c30b71e 100644 --- a/crates/swc_plugin_runner/src/cache.rs +++ b/crates/swc_plugin_runner/src/cache.rs @@ -14,7 +14,7 @@ use swc_common::{ sync::{Lazy, OnceCell}, }; #[cfg(not(target_arch = "wasm32"))] -use wasmer::{BaseTunables, CpuFeature, Engine, Target, Triple}; +use wasmer::{sys::BaseTunables, CpuFeature, Engine, Target, Triple}; use wasmer::{Module, Store}; #[cfg(all(not(target_arch = "wasm32"), feature = "filesystem_cache"))] use wasmer_cache::{Cache as WasmerCache, FileSystemCache, Hash}; diff --git a/crates/swc_plugin_runner/src/wasix_runtime.rs b/crates/swc_plugin_runner/src/wasix_runtime.rs index eca00d91a0a1..f2a01ac06a7b 100644 --- a/crates/swc_plugin_runner/src/wasix_runtime.rs +++ b/crates/swc_plugin_runner/src/wasix_runtime.rs @@ -12,7 +12,10 @@ use wasmer_wasix::Runtime; static ENGINE: Lazy> = Lazy::new(|| { // Use empty enumset to disable simd. use enumset::EnumSet; - use wasmer::{BaseTunables, CompilerConfig, EngineBuilder, Target, Triple}; + use wasmer::{ + sys::{BaseTunables, EngineBuilder}, + CompilerConfig, Target, Triple, + }; let mut set = EnumSet::new(); // [TODO]: Should we use is_x86_feature_detected! macro instead?