nxNx
GitHubNxWorkspace
GitHub
  • CI Pipeline Executions
    • Current executionSucceeded
      gh-36233
    • Runs and Agents
    • Timeline
    • Configuration
    • Self-Healing CI
    • Project Graph
    • Resource Usage
    • Analysis
    • Conformance
  • Runs
    • Current runSucceeded
    • Tasks
    • Resource Usage
Insights
  • Compare tasks
  • Analytics
  • Sign in
    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 affected --targets=lint,test,build,e2e,e2e-ci,format-native,lint-native,gradle:build-ci,vale,run
Succeeded
461eb88636238
<1%

Failed tasks

1 of 516 failed.

91%

Cache hits

472 of 516 tasks used cache.

62%

Distribution saved time

6m 27s instead of 16m 59s.

Atomizer enabled

43 groups of tasks optimized.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools