#Rollup
共 3 篇文章
解决 Rollup 报错 Circular dependency detected packaging loop 循环依赖修复
排查 Rollup / Vite 在打包模块时控制台疯狂刷屏 Circular dependency: src/a.js -> src/b.js -> src/a.js,生产运行引发运行时 undefined 变量,分析 循环引用与 TDZ(暂时性死区)。
解决 Rollup 报错 is not exported by CommonJS module 命名导出失败修复
排查 使用 Rollup 打包导入旧版 CommonJS 模块(如 react-is)时报 'default' is not exported by node_modules/react-is/index.js,分析 @rollup/plugin-commonjs 导出推断与 syntheticNamedExports。
解决 Rollup 报错 terser minification JavaScript heap out of memory 压缩内存溢出修复
排查 Rollup / Vite 在对海量单体文件执行生产代码压缩(Terser)时,进程突发崩溃报 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory,分析 Terser 多线程占用与 esbuild-minify 替换方案。


