diff --git a/crates/napi/src/lib.rs b/crates/napi/src/lib.rs index 61a73404ae055..359e752b36ab6 100644 --- a/crates/napi/src/lib.rs +++ b/crates/napi/src/lib.rs @@ -44,6 +44,7 @@ use dashmap::DashMap; use fxhash::FxHashSet; use napi::bindgen_prelude::*; use swc_core::{ + atoms::Atom, base::{Compiler, TransformOutput}, common::{FilePathMapping, SourceMap}, }; @@ -107,7 +108,7 @@ fn get_compiler() -> Arc { pub fn complete_output( env: &Env, output: TransformOutput, - eliminated_packages: FxHashSet, + eliminated_packages: FxHashSet, use_cache_telemetry_tracker: DashMap, ) -> napi::Result { let mut js_output = env.create_object()?; diff --git a/crates/napi/src/transform.rs b/crates/napi/src/transform.rs index 24c61d7664102..a03969476be41 100644 --- a/crates/napi/src/transform.rs +++ b/crates/napi/src/transform.rs @@ -83,7 +83,7 @@ fn skip_filename() -> bool { } impl Task for TransformTask { - type Output = (TransformOutput, FxHashSet, DashMap); + type Output = (TransformOutput, FxHashSet, DashMap); type JsValue = Object; fn compute(&mut self) -> napi::Result {