Unverified Commit 6914a25d authored by Pepijn Senders's avatar Pepijn Senders Committed by GitHub

Set `swcMinify` as an attribute on `terser-webpack-plugin-optimize` span (#37416)

It would be nice to have this attribute to compare runs with and without the `swcMinify` options.
Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
parent b3e1c11a
......@@ -73,6 +73,7 @@ export class TerserPlugin {
'terser-webpack-plugin-optimize'
)
terserSpan.setAttribute('compilationName', compilation.name)
terserSpan.setAttribute('swcMinify', this.options.swcMinify)
return terserSpan.traceAsyncFn(async () => {
let numberOfAssetsForMinify = 0
......
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