Skip to content

Commit

Permalink
fix: minify license filename with query
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Apr 28, 2024
1 parent b997b6d commit 58ec80b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/rspack_plugin_swc_js_minimizer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ async fn process_assets(&self, compilation: &mut Compilation) -> Result<()> {
true
})
.try_for_each_with(tx,|tx, (filename, original)| -> Result<()> {
let filename = filename.split("?").next().expect("Should have filename");
if let Some(original_source) = original.get_source() {
let input = original_source.source().to_string();
let input_source_map = original_source.map(&MapOptions::default());
Expand Down

0 comments on commit 58ec80b

Please sign in to comment.