3 ms·
Doesn't work with new JSX transform of react & babel if you have "type": "module" in your package.json https://reactjs.org/blog/2020/09/22/introducing-the-new-
by __s 6y ago
Doesn't work with new JSX transform of react & babel if you have "type": "module" in your package.json
https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-...
https://github.com/webpack/webpack/issues/11467 https://github.com/webpack/webpack/issues/11467
Seems rules: {test:/\.m?js$/,type:'javascript/auto',resolve:{enforceExtension:false,fullySpecify:false}} fixes
Also nothing in this doc mentions that webpack -p no longer works, instead you need to spell it out webpack --mode=production