Skip to content

Commit

Permalink
Merge pull request #5 from souljorje/patch-1
Browse files Browse the repository at this point in the history
feat: vite compatibility
  • Loading branch information
alex-kinokon committed Aug 26, 2021
2 parents 9ec32d0 + aecc11d commit c722e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function ignore(list, options = {}) {
return importee === emptyFileName ||
list.includes(importee) ||
(options.commonjsBugFix &&
list.includes(importee.replace(/^\0/, "").replace(/\?commonjs-proxy$/, "")))
list.includes(importee.replace(/^\0/, "").replace(/\?(commonjs-proxy|commonjs-require)$/, "")))
? emptyFileName
: null
},
Expand Down

0 comments on commit c722e7b

Please sign in to comment.