问题详情:
1.ci.getCompiledResult获取上传到微信后台服务器时代码包里的文件内容,如果参数带上setting: {
es6: true,
minifyJS: true,
minifyWXMLq: true,
minifyWXSS: true,
},就会报错,错误码10032.如果setting设为{}就不会报错。
2.为什么ci.getCompiledResult不传setting时(即未勾选上传时压缩JS,WXSS、WXML文件)打的包大小,甚至小于在IDE中手动上传代码
(勾选了上传时压缩JS,WXSS、WXML文件)的包大小。二者打包机制有什么区别呢,为什么会出现这种情况呢。
组件名称:ci.getCompiledResult
微信开发者工具版本号:stable 1.06.2402040
基础库:3.4.4
报错: 错误码10032
3 | * pinia v2.0.3
4 | * (c) 2021 Eduardo San Martin Morote
5 | * @license MIT
at throwError (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\utils\common.js:2:1095)
at m (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\core\compile\handler\js.js:2:2611)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async compileJS (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\core\compile\handler\js.js:2:2871)
at async Promise.all (index 5)
at async compileJSFiles (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\core\compile\common.js:2:2708)
at async compile (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\core\compile\mini_program.js:2:2151)
at async Object.getCompiledResult (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\ci\getCompiledResult.js:2:1089)
at async getCompiledResult (D:\mini\funPlaylet\funPlaylet\deploy\wx\index.js:93:26) {
code: 10032,
path: 'common/vendor.js'