admin管理员组文章数量:1313249
I'm encountering a strange issue when switching my Angular build system from Webpack to ESBuild.
When using:
"builder": "@angular-devkit/build-angular:browser"
Everything works fine, and RAM usage stays below 1GB.
However, when switching to:
"builder": "@angular-devkit/build-angular:browser-esbuild"
The RAM usage skyrockets to over 16GB, causing performance issues.
I narrowed it down to script optimization. If I disable it:
"optimization": {
"scripts": false,
"styles": true
}
The RAM usage remains under 1GB, but as soon as script optimization is enabled, the memory spikes again.
Additional Details:
- Webpack (browser) does not generate any warnings or errors.
- ESBuild (browser-esbuild) completes without errors, but with extreme RAM usage.
- The issue is only triggered when script optimization is enabled.
- I'm using the latest Angular version with ESBuild.
Has anyone experienced a similar issue, or does anyone know how to mitigate this high memory usage with ESBuild optimization?
P.S. Maybe it's related issue but not sure: Memory usage grows exponentially of the esbuild process. Any suggestion appreciated!
本文标签: webpackHigh RAM Usage in Angular Build with BrowserESBuild Script OptimizationStack Overflow
版权声明:本文标题:webpack - High RAM Usage in Angular Build with Browser-ESBuild Script Optimization - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741913137a2404566.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论