build(es/plugin): Fix Wasm build (#6181)

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

View File

@ -15,6 +15,7 @@ use swc_common::{
#[cfg(not(target_arch = "wasm32"))]
use wasmer::{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};
#[cfg(all(not(feature = "filesystem_cache"), not(feature = "memory_cache")))]