mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-09 03:03:18 +00:00
fix: remove the preload for SSR render of delayed hydration
This commit is contained in:
parent
0cb15c6bbd
commit
850287bf18
5
test/fixtures/basic/server/plugins/basicRenderDelayedHydration.ts
vendored
Normal file
5
test/fixtures/basic/server/plugins/basicRenderDelayedHydration.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export default defineNitroPlugin((nitroApp) => {
|
||||
nitroApp.hooks.hook("render:html", (html, {event})=>{
|
||||
html.head = html.head.map((headSection:string)=>headSection.replace(/<link((?=[^>]+\bhref="\/_nuxt\/DelayedWrapperTestComponent\.([^.]+?)\.js")[^>]+>)/, "")) //.replace(/<link rel="preload" href="\/_nuxt\/DelayedWrapperTestComponent\.js" as="script">/, "")
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user