diff --git a/package.json b/package.json index b2a897d254..24369eead1 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,6 @@ }, "devDependencies": { "@arethetypeswrong/cli": "0.17.2", - "@nuxt/cli": "3.20.0", "@nuxt/eslint-config": "0.7.5", "@nuxt/kit": "workspace:*", "@nuxt/rspack-builder": "workspace:*", @@ -100,6 +99,7 @@ "markdownlint-cli": "0.43.0", "memfs": "4.17.0", "nitro": "npm:nitro-nightly@3.0.0-beta-28796231.359af68d", + "nuxi": "3.18.2", "nuxt": "workspace:*", "nuxt-content-twoslash": "0.1.2", "ofetch": "1.4.1", diff --git a/packages/nuxt/src/pages/module.ts b/packages/nuxt/src/pages/module.ts index b5b7d1b0ac..cfb390f1d6 100644 --- a/packages/nuxt/src/pages/module.ts +++ b/packages/nuxt/src/pages/module.ts @@ -642,7 +642,7 @@ if (import.meta.hot) { for (const route of routes) { router.addRoute(route) } - router.replace('') + router.replace(router.currentRoute.value.fullPath) } if (routes && 'then' in routes) { routes.then(addRoutes) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 361c6dbafd..50187066f3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,9 +44,6 @@ importers: '@arethetypeswrong/cli': specifier: 0.17.2 version: 0.17.2 - '@nuxt/cli': - specifier: 3.20.0 - version: 3.20.0(magicast@0.3.5) '@nuxt/eslint-config': specifier: 0.7.5 version: 0.7.5(@vue/compiler-sfc@3.5.13)(eslint@9.18.0(jiti@2.4.2))(typescript@5.7.3) @@ -140,6 +137,9 @@ importers: nitro: specifier: npm:nitro-nightly@3.0.0-beta-28796231.359af68d version: nitro-nightly@3.0.0-beta-28796231.359af68d(typescript@5.7.3) + nuxi: + specifier: 3.18.2 + version: 3.18.2 nuxt: specifier: workspace:* version: link:packages/nuxt @@ -5997,6 +5997,11 @@ packages: nth-check@2.1.1: resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} + nuxi@3.18.2: + resolution: {integrity: sha512-JKpbXJ5suXSBJxPvosw8eqdJOniNs6RUmi91aaRQG4jmKcDCZgbZIPUBBJNdllCIcrE0jQQO40BfFLxnzx8Ipg==} + engines: {node: ^16.10.0 || >=18.0.0} + hasBin: true + nuxt-content-twoslash@0.1.2: resolution: {integrity: sha512-7vCO04V0uyCXtjh40HgVIVKRReUlXc4efMNMdgDtx3Y7p9mnChRt9eRRD3c8VlDD27pLlkrTTnE2n15bu/SqbQ==} hasBin: true @@ -14075,6 +14080,8 @@ snapshots: dependencies: boolbase: 1.0.0 + nuxi@3.18.2: {} + nuxt-content-twoslash@0.1.2(@nuxtjs/mdc@0.8.3): dependencies: '@nuxt/kit': link:packages/kit