mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
build(es/plugin): Fix Wasm build, really (#6180)
This commit is contained in:
parent
995c701bc4
commit
ea4ae3dfbc
@ -12,8 +12,9 @@ use swc_common::{
|
||||
collections::AHashMap,
|
||||
sync::{Lazy, OnceCell},
|
||||
};
|
||||
use wasmer::{BaseTunables, CpuFeature, Engine, Module, Store, Target, Triple};
|
||||
#[cfg(all(not(target_arch = "wasm32"), feature = "filesystem_cache"))]
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use wasmer::{BaseTunables, CpuFeature, Engine, Target, Triple};
|
||||
use wasmer::{Module, Store};
|
||||
use wasmer_cache::{Cache as WasmerCache, FileSystemCache, Hash};
|
||||
|
||||
#[cfg(all(not(feature = "filesystem_cache"), not(feature = "memory_cache")))]
|
||||
|
Loading…
Reference in New Issue
Block a user