Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 3, 2025
1 parent e3b3f73 commit 71290b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/napi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};
Expand Down Expand Up @@ -107,7 +108,7 @@ fn get_compiler() -> Arc<Compiler> {
pub fn complete_output(
env: &Env,
output: TransformOutput,
eliminated_packages: FxHashSet<String>,
eliminated_packages: FxHashSet<Atom>,
use_cache_telemetry_tracker: DashMap<String, usize>,
) -> napi::Result<Object> {
let mut js_output = env.create_object()?;
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn skip_filename() -> bool {
}

impl Task for TransformTask {
type Output = (TransformOutput, FxHashSet<String>, DashMap<String, usize>);
type Output = (TransformOutput, FxHashSet<Atom>, DashMap<String, usize>);
type JsValue = Object;

fn compute(&mut self) -> napi::Result<Self::Output> {
Expand Down

0 comments on commit 71290b9

Please sign in to comment.