Skip to content

Commit

Permalink
fix: should not stringify loader loading requests
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Aug 21, 2024
1 parent 0d40d9f commit 4206d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rspack/src/loader-runner/loadLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function loadLoader(
try {
if (url === undefined) url = require("node:url");
const loaderUrl = url!.pathToFileURL(loader.path);
const modulePromise = import(JSON.stringify(loaderUrl.toString()));
const modulePromise = import(loaderUrl.toString());
modulePromise.then((module: LoaderModule) => {
handleResult(loader, module, callback);
}, callback);
Expand Down

0 comments on commit 4206d07

Please sign in to comment.