Skip to content

Commit

Permalink
replaces slashes for windows (#6601)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd authored May 23, 2024
1 parent 2c60806 commit d6d2b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/plugins/rollup-treeshake-ignore.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function treeshakeIgnore(pathRegexList = []) {
return {
name: 'treeshake-ignore',
transform(code, id) {
if (pathRegexList.some(regex => regex.test(id))) {
if (pathRegexList.some(regex => regex.test(id.replace(/\\/g, '/')))) {
return {
code,
map: null,
Expand Down

0 comments on commit d6d2b3f

Please sign in to comment.