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