From 2c52ddcbd1f41ae68fd0d75bd3aa50675f8bd5f2 Mon Sep 17 00:00:00 2001 From: shulaoda Date: Tue, 20 Aug 2024 15:25:54 +0800 Subject: [PATCH] chore(rspack_plugin_javascript): bump fast-glob 0.4.0 --- Cargo.lock | 4 ++-- crates/rspack_plugin_javascript/Cargo.toml | 2 +- .../src/plugin/side_effects_flag_plugin.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a4021e17f47..96d76934116 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1122,9 +1122,9 @@ dependencies = [ [[package]] name = "fast-glob" -version = "0.3.2" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239ce881ea1fc42c19951979aa7fc75d740f6cd553101922b4d1f48d68429234" +checksum = "bb10ed0f8a3dca52477be37ac0fb8f9d1fd4cd8d311b4484bdd45c1c56e0c9ec" [[package]] name = "fastrand" diff --git a/crates/rspack_plugin_javascript/Cargo.toml b/crates/rspack_plugin_javascript/Cargo.toml index 06de1a9da6c..e1f7743fcde 100644 --- a/crates/rspack_plugin_javascript/Cargo.toml +++ b/crates/rspack_plugin_javascript/Cargo.toml @@ -10,7 +10,7 @@ anymap = { workspace = true } async-trait = { workspace = true } bitflags = { workspace = true } dashmap = { workspace = true } -fast-glob = "0.3.2" +fast-glob = "0.4.0" indexmap = { workspace = true } indoc = { workspace = true } itertools = { workspace = true } diff --git a/crates/rspack_plugin_javascript/src/plugin/side_effects_flag_plugin.rs b/crates/rspack_plugin_javascript/src/plugin/side_effects_flag_plugin.rs index e5216df3327..47d4fb4ce62 100644 --- a/crates/rspack_plugin_javascript/src/plugin/side_effects_flag_plugin.rs +++ b/crates/rspack_plugin_javascript/src/plugin/side_effects_flag_plugin.rs @@ -74,7 +74,7 @@ fn glob_match_with_normalized_pattern(pattern: &str, string: &str) -> bool { } else { String::from("**/") + trim_start }; - fast_glob::glob_match_with_brace(&normalized_glob, string.trim_start_matches("./")) + fast_glob::glob_match(&normalized_glob, string.trim_start_matches("./")) } pub struct SideEffectsFlagPluginVisitor<'a> {