Skip to content

Commit

Permalink
perf: source map dev tool plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Aug 30, 2024
1 parent 0124d4c commit 7a4a675
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 171 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions crates/rspack_plugin_devtool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ rspack_util = { version = "0.1.0", path = "../rspack_util" }
rustc-hash = { workspace = true }
simd-json = { workspace = true }
tracing = { workspace = true }
tokio = { workspace = true }

[package.metadata.cargo-shear]
ignored = ["tracing"]
7 changes: 1 addition & 6 deletions crates/rspack_plugin_devtool/src/module_filename_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,7 @@ impl ModuleFilenameHelpers {

let hash = get_hash(&identifier, output_options);

let resource = short_identifier
.clone()
.split('!')
.last()
.unwrap_or("")
.to_string();
let resource = short_identifier.split('!').last().unwrap_or("").to_string();

let loaders = get_before(&short_identifier, "!");
let all_loaders = get_before(&identifier, "!");
Expand Down
Loading

0 comments on commit 7a4a675

Please sign in to comment.