Unverified Commit e7f503ab authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Pass sourcemap when swcMinify is enabled (#29794)

parent bcb8e44b
......@@ -134,6 +134,13 @@ export class TerserPlugin {
const result = await require('../../../../swc').minify(
options.input,
{
...(options.inputSourceMap
? {
sourceMap: {
content: JSON.stringify(options.inputSourceMap),
},
}
: {}),
compress: true,
mangle: true,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment