From 1dccf1ef5f5c9833b56cb3e8e7053b259a77b9ec Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Mon, 13 Oct 2025 16:26:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B0=8F=E7=A8=8B=E5=BA=8F):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=94=AF=E4=BB=98=E5=AE=9D=E5=92=8C=E4=B8=81=E4=B8=81?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9A=84globalObjectMode=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决支付宝小程序和丁丁小程序开发工具报错【globalThis is not defined】的问题 --- manifest.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifest.config.ts b/manifest.config.ts index 7702df5..d9a8a38 100644 --- a/manifest.config.ts +++ b/manifest.config.ts @@ -141,6 +141,13 @@ export default defineManifestConfig({ optimization: { subPackages: true, }, + componentOptions: { + // 解决支付宝小程序和丁丁小程序开发工具报错 【globalThis is not defined】 + globalObjectMode: 'enable', + transpile: { + ignore: ['node_modules/**'], + }, + }, }, 'mp-baidu': { usingComponents: true,