mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): remove experimental hash hydration (#22648)
This commit is contained in:
parent
929dba4b22
commit
28e4cc298c
@ -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 })] : [];`
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user