提交 2203abe3 编写于 作者: fxy060608's avatar fxy060608

fix(app-plus): add usingComponents(question/87100,87294,87100)

上级 b80f26c6
......@@ -91,6 +91,9 @@ module.exports = function generateJson (compilation) {
const jsonFileMap = getChangedJsonFileMap()
for (let name of jsonFileMap.keys()) {
const jsonObj = JSON.parse(jsonFileMap.get(name))
if (process.env.UNI_PLATFORM === 'app-plus') { // App平台默认增加usingComponents,激活__wxAppCode__
jsonObj.usingComponents = {}
}
// customUsingComponents
if (jsonObj.customUsingComponents && Object.keys(jsonObj.customUsingComponents).length) {
jsonObj.usingComponents = Object.assign(jsonObj.customUsingComponents, jsonObj.usingComponents)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册