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 6034a23
Show file tree
Hide file tree
Showing 2 changed files with 169 additions and 172 deletions.
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 6034a23

Please sign in to comment.