Skip to content

Commit

Permalink
replace ahash with fnv
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Jan 31, 2024
1 parent cacb9ff commit f561536
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 39 deletions.
43 changes: 8 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion visitor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ repository = "https://github.com/g-plane/swc-plugin-vue-jsx"
edition = "2021"

[dependencies]
ahash = "0.8"
bitflags = "2.4"
css_dataset = "0.3"
fnv = "1.0"
indexmap = "2.1"
regex = "1.10"
serde = { version = "1.0", features = ["derive"] }
Expand Down
6 changes: 3 additions & 3 deletions visitor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use ahash::AHashMap;
use directive::{is_directive, parse_directive, Directive, NormalDirective};
use fnv::FnvHashMap;
use indexmap::IndexSet;
pub use options::{Options, Regex};
use patch_flags::PatchFlags;
Expand Down Expand Up @@ -42,8 +42,8 @@ where
transform_on_helper: Option<Ident>,

define_component: Option<SyntaxContext>,
interfaces: AHashMap<(JsWord, SyntaxContext), TsInterfaceDecl>,
type_aliases: AHashMap<(JsWord, SyntaxContext), TsType>,
interfaces: FnvHashMap<(JsWord, SyntaxContext), TsInterfaceDecl>,
type_aliases: FnvHashMap<(JsWord, SyntaxContext), TsType>,

unresolved_mark: Mark,
comments: Option<C>,
Expand Down

0 comments on commit f561536

Please sign in to comment.