ice icon indicating copy to clipboard operation
ice copied to clipboard

JavaScript heap out of memory

Open docterlei opened this issue 5 months ago • 1 comments

Describe the bug

Image

Expected behavior

用cross-env处理后也不行 改个几次文件后 控制台就会退出报这个错误 这是现在的依赖

Image

Actual behavior

No response

Version of ice.js

3.4.0

Content of build.json or ice.config.mts


Additional context

No response

docterlei avatar Jul 09 '25 10:07 docterlei

能够提供可复现的 case,或者考虑禁用 webpack cache 试试,参考代码:

import { defineConfig } from "@ice/app";
export default defineConfig(() => ({
  plugins: [{
    name: 'custom',
    setup({ onGetConfig }) {
      onGetConfig((config) => {
        config.enableCache = false;
        return config;
      })
    },
  }],
}));

ClarkXia avatar Aug 01 '25 08:08 ClarkXia