From 8142ea3a20e52f0d32568a74b5297ae1f740fe92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 23 Jul 2024 13:51:55 +0900 Subject: [PATCH] fix --- crates/swc_plugin_runner/src/cache.rs | 2 +- crates/swc_plugin_runner/src/wasix_runtime.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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?