build(es/plugin): Fix Wasm build, really (#6180)

This commit is contained in:
Donny/강동윤 2022-10-17 20:06:08 +09:00 committed by GitHub
parent 995c701bc4
commit ea4ae3dfbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")))]