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
npm install with npm 7.20.2 and earlier will install babel-loader as a top level module in node_modules npm install with npm 7.30.2 and newer will install babel-loader as a webpack-babel-multi-target-plugin dependency in node_modules/webpack-babel-multi-target-plugin/node_modules
With a simple package.json: https://github.com/Artur-/webpack-babel-test/blob/main/package.json
npm install
with npm 7.20.2 and earlier will installbabel-loader
as a top level module innode_modules
npm install
with npm 7.30.2 and newer will installbabel-loader
as a webpack-babel-multi-target-plugin dependency innode_modules/webpack-babel-multi-target-plugin/node_modules
Because of this, a simple webpack configuration like https://github.com/Artur-/webpack-babel-test/blob/main/webpack.config.js will work fine with npm < 7.20.3 and fail with npm >= 7.20.3:
To reproduce the problem:
Works fine if you change the npm command to
The text was updated successfully, but these errors were encountered: