diff --git a/test/fixtures/basic/server/plugins/basicRenderDelayedHydration.ts b/test/fixtures/basic/server/plugins/basicRenderDelayedHydration.ts index 2aa6ac3b63..7236caaa0a 100644 --- a/test/fixtures/basic/server/plugins/basicRenderDelayedHydration.ts +++ b/test/fixtures/basic/server/plugins/basicRenderDelayedHydration.ts @@ -1,5 +1,5 @@ export default defineNitroPlugin((nitroApp) => { - nitroApp.hooks.hook("render:html", (html, {event})=>{ - html.head = html.head.map((headSection:string)=>headSection.replace(/]+\bhref="\/_nuxt\/DelayedWrapperTestComponent\.([^.]+?)\.js")[^>]+>)/, "")) //.replace(//, "") - }) + nitroApp.hooks.hook('render:html', (html, { event }) => { + html.head = html.head.map((headSection: string) => headSection.replace(/]+\bhref="\/_nuxt\/DelayedWrapperTestComponent\.([^.]+?)\.js")[^>]+>)/, '')) // .replace(//, "") + }) })