-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: alias module request from multiple loaders #577
Conversation
@@ -3,7 +3,7 @@ | |||
const path = require("path"); | |||
const utils = require("loader-utils"); | |||
|
|||
const matchModuleImport = /^~([^\/]+|@[^\/]+[\/][^\/]+)$/g; | |||
const matchModuleImport = /^~([^\/]+|@[^\/]+[\/][^\/]+)$/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of test lines around one characters 🤕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using g
modify matchModuleImport.lastIndex
and broke behavior as expected
Codecov Report
@@ Coverage Diff @@
## master #577 +/- ##
=======================================
Coverage 97.54% 97.54%
=======================================
Files 6 6
Lines 122 122
=======================================
Hits 119 119
Misses 3 3
Continue to review full report at Codecov.
|
Thanks for providing a test case. I managed to reproduce the problem with a simpler test, so I'm closing this. But anyway, thanks 👍 |
fixes #566