You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
I guess webpack supports this for historical reasons, I am not sure if the plugin should handle this case or the user should be more careful with its webpack configuration or webpack should no support it.
Hello again!
Webpack 3.10.0 allows you to pass an array of rules using the
rules
orloaders
key:But this plugin only checks for the
rules
key, since it is undefined, it would reset the rules, deleting the user loaders configuration:sentry-webpack-plugin/src/index.js
Lines 38 to 40 in 955615b
I guess webpack supports this for historical reasons, I am not sure if the plugin should handle this case or the user should be more careful with its webpack configuration or webpack should no support it.
More info in the webpack migration guide: https://webpack.js.org/guides/migrating/#module-loaders-is-now-module-rules
Source code on webpack side: https://github.com/webpack/webpack/blob/f352436a0fd6491b8cc1aadeddfbe02c878686ff/lib/NormalModuleFactory.js#L49
As you can see
rules
is used if defined.This bug was introduced in #20
Since it is supported by webpack I think the plugin should support it.
The solution should be adding an additional check for
loaders
key.The text was updated successfully, but these errors were encountered: