source-map-loader

This commit is contained in:
David Reed 2022-11-23 14:41:02 -05:00
parent f34bb3d640
commit 6dc79663c6
No known key found for this signature in database
GPG key ID: 2211691D8A1EE72F
3 changed files with 89 additions and 0 deletions

View file

@ -25,6 +25,16 @@ const config = {
path: fileURLToPath(new URL('./dist/', import.meta.url)),
filename: 'uv.[name].js',
},
module: {
rules: [
{
test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader'],
},
],
},
ignoreWarnings: [/Failed to parse source map/],
optimization: {
minimize: !isDevelopment,
minimizer: [