From 0c0bf8f08abf26b087867462ec72c8c4bdc91790 Mon Sep 17 00:00:00 2001 From: chenwanyue <527202897@qq.com> Date: Mon, 16 Jun 2025 15:16:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20web=20uno=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/unocss-plugin/lib/web-plugin/consts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/unocss-plugin/lib/web-plugin/consts.js b/packages/unocss-plugin/lib/web-plugin/consts.js index e56289c26c..dc4da80602 100644 --- a/packages/unocss-plugin/lib/web-plugin/consts.js +++ b/packages/unocss-plugin/lib/web-plugin/consts.js @@ -24,7 +24,7 @@ function resolveLayer (id) { if (match) { return match[1] || LAYER_MARK_ALL } } -const LAYER_PLACEHOLDER_RE = /(\\?")?#--unocss--\s*{\s*layer\s*:\s*(.+?);?\s*}/g +const LAYER_PLACEHOLDER_RE = /(\\?")?#(?:\\)?--unocss--\s*{\s*layer\s*:\s*(.+?);?\s*}/g function getLayerPlaceholder (layer) { return `#--unocss--{layer:${layer}}` }