From ae5806518a3355596941db7b02ae160a108ed070 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 15 Jun 2024 12:15:54 +0100 Subject: [PATCH] fix(nuxt): add `mergeProps` import in islands transform (#27622) --- .../nuxt/src/components/islandsTransform.ts | 4 +- packages/nuxt/test/islandTransform.test.ts | 46 +++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/components/islandsTransform.ts b/packages/nuxt/src/components/islandsTransform.ts index ac5a954932..e10f1cd957 100644 --- a/packages/nuxt/src/components/islandsTransform.ts +++ b/packages/nuxt/src/components/islandsTransform.ts @@ -28,7 +28,7 @@ const SCRIPT_RE = /]*>/g const HAS_SLOT_OR_CLIENT_RE = /]*>|nuxt-client/ const TEMPLATE_RE = / + + +`, 'hello.server.vue') + + expect(normalizeLineEndings(result)).toMatchInlineSnapshot(` + " + + + " + `) + }) + it('expect slot fallback transform to match inline snapshot', async () => { const result = await viteTransform(`