From 60d53bbf507707c629144745de56d0dc44019f8b Mon Sep 17 00:00:00 2001 From: mackwang Date: Thu, 21 May 2026 13:40:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0assetModules=E5=88=A4?= =?UTF-8?q?=E7=A9=BA=E9=80=BB=E8=BE=91=E9=98=B2=E6=AD=A2=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/unocss-plugin/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/unocss-plugin/lib/index.js b/packages/unocss-plugin/lib/index.js index 74054bbad2..46825e5534 100644 --- a/packages/unocss-plugin/lib/index.js +++ b/packages/unocss-plugin/lib/index.js @@ -385,7 +385,7 @@ class MpxUnocssPlugin { await Promise.all(Object.entries(assets).map(([file, source]) => { if (file.endsWith(styleExt) || file.endsWith(templateExt)) { const assetModules = assetsModulesMap.get(file) - if (has(assetModules, (module) => { + if (assetModules && has(assetModules, (module) => { if (module.resource) { const resourcePath = toPosix(parseRequest(module.resource).resourcePath) return filterFile(resourcePath, this.options.scan)