Skip to content

Commit

Permalink
Merge pull request dcloudio#1352 from xlfsummer/xlfsummer-patch-1
Browse files Browse the repository at this point in the history
修复 app.json 生成后被部分覆盖的问题
  • Loading branch information
fxy060608 committed Feb 27, 2020
2 parents 350fa0a + b94d707 commit ee71135
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/uni-template-compiler/lib/auto-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -90,4 +93,4 @@ const compilerModule = {
module.exports = {
compileTemplate,
module: compilerModule
}
}

0 comments on commit ee71135

Please sign in to comment.