mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(nuxt): dedupe vue-router (#18626)
This commit is contained in:
parent
5037dd6876
commit
a0085b70a3
@ -186,6 +186,10 @@ export default defineNuxtModule({
|
|||||||
nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || []
|
nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || []
|
||||||
nuxt.options.vite.optimizeDeps.include.push('vue-router')
|
nuxt.options.vite.optimizeDeps.include.push('vue-router')
|
||||||
|
|
||||||
|
nuxt.options.vite.resolve = nuxt.options.vite.resolve || {}
|
||||||
|
nuxt.options.vite.resolve.dedupe = nuxt.options.vite.resolve.dedupe || []
|
||||||
|
nuxt.options.vite.resolve.dedupe.push('vue-router')
|
||||||
|
|
||||||
// Add router options template
|
// Add router options template
|
||||||
addTemplate({
|
addTemplate({
|
||||||
filename: 'router.options.mjs',
|
filename: 'router.options.mjs',
|
||||||
|
Loading…
Reference in New Issue
Block a user