From 0f6f7a2851a9cd0f65eb4bf743c04659009f237f Mon Sep 17 00:00:00 2001 From: iven Date: Wed, 13 May 2026 23:48:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp):=20DevTools=20=E5=8D=A1=E6=AD=BB?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E2=80=94=20filesystem=20=E7=BC=93?= =?UTF-8?q?=E5=AD=98=20+=20prebundle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - webpack5 filesystem cache 加速二次编译 - prebundle 关闭(避免与 taro-loader 冲突) - 配合 Watchman 安装 + ulimit 提升可根本解决卡死 --- apps/miniprogram/config/dev.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/miniprogram/config/dev.ts b/apps/miniprogram/config/dev.ts index 6eba86d..291bc4e 100644 --- a/apps/miniprogram/config/dev.ts +++ b/apps/miniprogram/config/dev.ts @@ -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: {},