nx
Nx
GitHub
Nx
Workspace
GitHub
CI Pipeline Executions
Current execution
Succeeded
gh-36233
Runs and Agents
Timeline
Configuration
Self-Healing CI
Project Graph
Resource Usage
Analysis
Conformance
Runs
Current run
Succeeded
Tasks
Resource Usage
Insights
Compare tasks
Analytics
Sign in
Toggle sidebar
fix(webpack): disable extractComments on the swc terser minimizer Production builds with `compiler: 'swc'` crashed during minification once terser-webpack-plugin resolved to 5.6.x: unknown field `extractComments`, expected one of `parse`, `compress`, `mangle`, ... terser-webpack-plugin 5.6 forwards the plugin-level `extractComments` option (default `true`) into @swc/core's minify options, which rejects it as an unknown field. The babel minimizer branch already set `extractComments: false`; the swc branch did not, so it inherited the crashing default. Set `extractComments: false` on the swc `TerserPlugin` to match the babel branch. On the previously pinned 5.3.x (which ignored the option) the emitted output is byte-identical, so this only removes the crash on 5.6+. Add a unit test asserting both minimizer branches set `extractComments: false`.
nx-cloud record -- pnpm nx-cloud conformance:check
⌘K
Succeeded
nx-cloud record -- pnpm nx-cloud conformance:check
Click to copy
Linux
4 CPU cores
461eb886
36238
No resource usage was collected for this run.