Skip to content

Commit

Permalink
chore: quote styles
Browse files Browse the repository at this point in the history
  • Loading branch information
YUCLing committed Sep 28, 2024
1 parent 99df75f commit 763bdb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class RegisterAsyncChunksPlugin {
processUrlPath(urlPath) {
if (path.sep == "\\") {
// separator on windows is "\", this will cause escape issues when used in url path.
return urlPath.replace(/\\/g, "/");
return urlPath.replace(/\\/g, '/');
}
return urlPath;
}
Expand Down
4 changes: 2 additions & 2 deletions js-packages/webpack-config/src/autoChunkNameLoader.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ module.exports = function autoChunkNameLoader(source) {
}

if (path.sep == "\\") {
// separator on windows is "\", the resolver only works with "/".
chunkPath = chunkPath.replace(/\\/g, "/");
// separator on windows is '\', the resolver only works with '/'.
chunkPath = chunkPath.replace(/\\/g, '/');
}

const webpackCommentOptions = {
Expand Down

0 comments on commit 763bdb2

Please sign in to comment.