Closed dlong500 closed 4 years ago
Just note, please migrate from optimize-css-assets-webpack-plugin
to https://github.com/webpack-contrib/css-minimizer-webpack-plugin
Maybe someone generates a bad source map, looks bug, big thanks!
If it's any help, this repo (from https://github.com/webpack/webpack/issues/11517) is a more minimal way of reproducing the bug:
oh wow thanks @rob-baker-ar ! i jsut created a reproducible version myself:
https://github.com/chaffeqa/webpack-5-sourcemaps-repro
mine has both class and enum versions of the bug
@evilebottnawi Ok, I've finally created a reproducible test repo (as requested in #55). I forked HashemKhalifa/webpack-react-boilerplate and the ONLY things I changed were:
targets: 'defaults'
Here is the repo: https://github.com/dlong500/webpack-react-boilerplate/tree/source-map-diag The changes are in the source-map-diag branch.
Building the project via
yarn run build
(or npm) yields the following: