From ceab38770d5e80929518cfd5c71081756288bb55 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Thu, 14 Sep 2023 23:44:18 +0200 Subject: [PATCH] fix(nuxt): correct islandsTransform slot regex (#23226) --- .../nuxt/src/components/islandsTransform.ts | 2 +- packages/nuxt/test/islandTransform.test.ts | 159 ++++++++++++++++++ 2 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 packages/nuxt/test/islandTransform.test.ts diff --git a/packages/nuxt/src/components/islandsTransform.ts b/packages/nuxt/src/components/islandsTransform.ts index 1cdc89a831..388764f334 100644 --- a/packages/nuxt/src/components/islandsTransform.ts +++ b/packages/nuxt/src/components/islandsTransform.ts @@ -11,7 +11,7 @@ interface ServerOnlyComponentTransformPluginOptions { } const SCRIPT_RE = /]*>/g -const HAS_SLOT_RE = /]*>/ const TEMPLATE_RE = /