Skip to content

Commit

Permalink
fix(mp-weixin): workers支持对象 #4589
Browse files Browse the repository at this point in the history
  • Loading branch information
yurj26 committed Dec 15, 2023
1 parent c91c7b4 commit 67a031d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/uni-mp-qq/lib/uni.config.js
Expand Up @@ -29,7 +29,7 @@ module.exports = {
'custom-tab-bar'
]
const workers = platformOptions.workers
workers && copyOptions.push(workers)
workers && copyOptions.push(typeof workers === 'object' ? workers.path : workers)

const wxcomponentsDir = path.resolve(process.env.UNI_INPUT_DIR, COMPONENTS_DIR_NAME)
const ignore = ['**/*.vue', '**/*.css'] // v3 会自动转换生成vue,css文件,需要过滤
Expand Down Expand Up @@ -59,4 +59,4 @@ module.exports = {
})
return copyOptions
}
}
}
2 changes: 1 addition & 1 deletion packages/uni-mp-weixin/lib/uni.config.js
Expand Up @@ -44,7 +44,7 @@ module.exports = {
copyOptions.push(copyMiniProgramThemeJson(platformOptions, vueOptions))

const workers = platformOptions.workers
workers && copyOptions.push(workers)
workers && copyOptions.push(typeof workers === 'object' ? workers.path : workers)

const manifestConfig = process.UNI_MANIFEST
const weixinConfig = manifestConfig['mp-weixin'] || {}
Expand Down

0 comments on commit 67a031d

Please sign in to comment.