Skip to content

Commit

Permalink
fix: checkUsingComponents忽略存在template应用的组件
Browse files Browse the repository at this point in the history
  • Loading branch information
mackwang committed Jan 14, 2025
1 parent 26559f9 commit 70e8cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/lib/template-compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ function parse (template, options) {
Array.isArray(val.errorArray) && val.errorArray.forEach(item => error$1(item))
})

if (!tagNames.has('component') && options.checkUsingComponents) {
if (!tagNames.has('component') && !tagNames.has('template') && options.checkUsingComponents) {
const arr = []
usingComponents.forEach((item) => {
if (!tagNames.has(item) && !options.globalComponents.includes(item) && !options.componentPlaceholder.includes(item)) {
Expand Down

0 comments on commit 70e8cc2

Please sign in to comment.