Closed bzy-nya closed 2 years ago
ok, I have a look
@bzy-nya hello, can you show your code by https://stackblitz.com/ or other way?
ok, I see,
UMD and IIFE output formats are not supported for code-splitting builds
your final code just one
file named xxx.user.js, code-splitting builds
is not working
so you can not use Dynamic import
in your code
ok, I see,
UMD and IIFE output formats are not supported for code-splitting builds
your final code just
one
file named xxx.user.js,code-splitting builds
is not workingso you can not use
Dynamic import
in your code
ok, fixed, thank you.
just use
import AppVue from '@/App.vue'
createRouter({
history:createMemoryHistory('./'),
routes:[
{
path: '/app',
name: 'App',
component: AppVue,
},
]
})
instead of
createRouter({
history:createMemoryHistory('./'),
routes:[
{
path: '/app',
name: 'App',
component: () => import('@/App.vue'),
},
]
})