fix(小程序): 修复支付宝小程序开发工具报错问题
调整编译配置,解决支付宝小程序开发工具中 globalThis 未定义的报错问题,并优化忽略 node_modules 的配置
This commit is contained in:
@@ -141,14 +141,16 @@ export default defineManifestConfig({
|
||||
optimization: {
|
||||
subPackages: true,
|
||||
},
|
||||
componentOptions: {
|
||||
// 解决支付宝小程序和丁丁小程序开发工具报错 【globalThis is not defined】
|
||||
// 解决支付宝小程序开发工具报错 【globalThis is not defined】
|
||||
compileOptions: {
|
||||
globalObjectMode: 'enable',
|
||||
transpile: {
|
||||
script: {
|
||||
ignore: ['node_modules/**'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'mp-baidu': {
|
||||
usingComponents: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user