Skip to content

Commit 0347849

Browse files
committed
fix build
1 parent 66a2009 commit 0347849

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crates/swc_ecma_minifier/src/program_data.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
use indexmap::IndexSet;
22
use rustc_hash::{FxBuildHasher, FxHashMap};
3-
use swc_atoms::Atom;
4-
use swc_allocator::api::arena;
5-
use swc_allocator::api::{arena, hashbrown::hash_map::Entry};
63
use swc_allocator::{
74
allocators::Arena,
85
api::{arena, hashbrown::hash_map::Entry},
96
};
10-
use swc_atoms::JsWord;
7+
use swc_atoms::Atom;
118
use swc_common::SyntaxContext;
129
use swc_ecma_ast::*;
1310
use swc_ecma_usage_analyzer::{
@@ -129,7 +126,7 @@ pub(crate) struct VarUsageInfo {
129126
/// PR. (because it's hard to review)
130127
infects_to: Vec<Access>,
131128
/// Only **string** properties.
132-
pub(crate) accessed_props: Box<FxHashMap<JsWord, u32>>,
129+
pub(crate) accessed_props: Box<FxHashMap<Atom, u32>>,
133130

134131
pub(crate) used_recursively: bool,
135132
}
@@ -573,7 +570,7 @@ impl<'alloc> VarDataLike<'alloc> for VarUsageInfo {
573570
self.indexed_with_dynamic_key = true;
574571
}
575572

576-
fn add_accessed_property(&mut self, name: swc_atoms::JsWord) {
573+
fn add_accessed_property(&mut self, name: swc_atoms::Atom) {
577574
*self.accessed_props.entry(name).or_default() += 1;
578575
}
579576

0 commit comments

Comments
 (0)