Updated to v0.1.12 and started getting errors from parsing .map files from dependencies under node_modules #3317
Replies: 3 comments 3 replies
-
Could you provide more context, like a minimum reproduce repo, or you configuration? It seems rspack recognizes the module.exports = {
// ...
module: {
rules: [
{
test: /\.js/
}
]
}
// ...
} the correct one should be module.exports = {
// ...
module: {
rules: [
{
- test: /\.js/
+ test: /\.js$/
}
]
}
// ...
} |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response - all the rules defined with .js files have a terminating '$' . For instance, The weird part is
|
Beta Was this translation helpful? Give feedback.
-
Also is there a rule I can use to "ignore" all the *.map.js files in node_modules ?
|
Beta Was this translation helpful? Give feedback.
-
Hello,
a couple of days back I updated the rspack version from 0.1.8 to 0.1.12 and I started getting errors when parsing map files from 3rd party dependencies.
error[javascript]: JavaScript parsing error
┌─ ......\node_modules@msstream\components-web-recorder\loc\language-tr.js.map:1:11
│
1 │ {"version":3,"file":"../loc/language-tr.js","mappings":"CAAA,SAA2CA,EAAM
I was not getting this error with the previous 0.1.8 version and I am not sure why with the upgrade I would get this error. Any ideas, help to get around this issue?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions