Skip to content

Commit

Permalink
Merge pull request #1827 from didi/fix-check-using-components
Browse files Browse the repository at this point in the history
Fix check using components
  • Loading branch information
Blackgan3 authored Feb 6, 2025
2 parents faa4ce8 + ccd1ece commit 0529545
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 0529545

Please sign in to comment.