From 28e4cc298c173af2fd44488a771ed7022843eb9a Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Wed, 16 Aug 2023 11:25:07 +0300 Subject: [PATCH] fix(nuxt): remove experimental hash hydration (#22648) --- packages/nuxt/src/head/module.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/nuxt/src/head/module.ts b/packages/nuxt/src/head/module.ts index 6fefe08d7bf5..9131c015cecb 100644 --- a/packages/nuxt/src/head/module.ts +++ b/packages/nuxt/src/head/module.ts @@ -60,13 +60,8 @@ export default defineNuxtModule({ if (!nuxt.options.experimental.headNext) { return 'export default []' } - // TODO don't use HashHydrationPlugin for SPA - return `import { CapoPlugin, HashHydrationPlugin } from '@unhead/vue' -const plugins = [HashHydrationPlugin()]; -if (process.server) { - plugins.push(CapoPlugin({ track: true })); -} -export default plugins;` + return `import { CapoPlugin } from '@unhead/vue'; +export default process.server ? [CapoPlugin({ track: true })] : [];` } })