From 70e8cc2f22327d839c58fa5464a2935364b7de25 Mon Sep 17 00:00:00 2001 From: mackwang Date: Tue, 14 Jan 2025 17:53:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20checkUsingComponents=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E5=AD=98=E5=9C=A8template=E5=BA=94=E7=94=A8=E7=9A=84=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/webpack-plugin/lib/template-compiler/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack-plugin/lib/template-compiler/compiler.js b/packages/webpack-plugin/lib/template-compiler/compiler.js index 2781eee4b..345144ed4 100644 --- a/packages/webpack-plugin/lib/template-compiler/compiler.js +++ b/packages/webpack-plugin/lib/template-compiler/compiler.js @@ -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)) {