Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Jul 12, 2024
1 parent daaf0aa commit 47d86ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rspack/src/loader-runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ function createLoaderObject(
obj.query.replace(/#/g, "\u200b#") +
obj.fragment,
set: value => {
var splittedRequest = parseResourceWithoutFragment(value.request);
const splittedRequest = parseResourceWithoutFragment(value.request);
obj.path = splittedRequest.path;
obj.query = splittedRequest.query;
obj.fragment = splittedRequest.fragment || "";
obj.fragment = "";
obj.options =
obj.options === null
? splittedRequest.query
Expand Down

0 comments on commit 47d86ba

Please sign in to comment.