fix(mp): DevTools 卡死优化 — filesystem 缓存 + prebundle

- webpack5 filesystem cache 加速二次编译
- prebundle 关闭(避免与 taro-loader 冲突)
- 配合 Watchman 安装 + ulimit 提升可根本解决卡死
This commit is contained in:
iven
2026-05-13 23:48:35 +08:00
parent 9c7ce939c7
commit 0f6f7a2851

View File

@@ -2,12 +2,22 @@ import type { UserConfigExport } from '@tarojs/cli';
export default {
logger: { quiet: false },
compiler: {
type: 'webpack5',
prebundle: { enable: false },
},
mini: {
miniCssExtractPluginOption: {
ignoreOrder: true,
},
webpackChain(chain) {
chain.devtool(false);
chain.cache({
type: 'filesystem',
buildDependencies: {
config: [__filename],
},
});
},
},
h5: {},