提交 32504950 编写于 作者: Q qiang

fix(mp-toutiap): 修复差量编译失效的问题

上级 a7be6764
......@@ -151,7 +151,7 @@ module.exports = function generateComponent (compilation, jsonpFunction = 'webpa
const source = assets[name].source()
const [ownerName, parentName, componentName, slotName] = source.split(',')
const json = assets[ownerName + '.json']
const jsonSource = json.source()
const jsonSource = json && json.source()
if (jsonSource) {
const data = JSON.parse(jsonSource)
const usingComponents = data.usingComponents || {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册