I am migrating webpack 4
to webpack 5
.
config/webpack.js
has:
`devtool: isProduction ? 'hidden-source-map' : 'cheap-module-eval-source-map'
after migration got error:
onfiguration.devtool should match pattern "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$".
It looks like the new webpack
don't like conditions, because if I change to:
devtool: 'hidden-source-map'
error is gone.