未验证 提交 ee711352 编写于 作者: fxy060608's avatar fxy060608 提交者: GitHub

Merge pull request #1352 from xlfsummer/xlfsummer-patch-1

修复 app.json 生成后被部分覆盖的问题
......@@ -39,6 +39,9 @@ function updateMPUsingAutoImportComponents (autoComponents, options) {
return
}
const resourcePath = options.resourcePath.replace(path.extname(options.resourcePath), '')
if (resourcePath === 'App') {
return
}
const usingAutoImportComponents = Object.create(null)
autoComponents.forEach(({
name,
......@@ -90,4 +93,4 @@ const compilerModule = {
module.exports = {
compileTemplate,
module: compilerModule
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册