Can not use it in Vite demo
allran opened this issue · 4 comments
allran commented
RT
getkey commented
Please be more specific: a stack trace or a repro would be appreciated. Feel free to reopen with more details.
allran commented
code at router.ts look like this:
{
path: '/login',
name: Route.LOGIN,
component: () => import('@/views/Login'),
meta: {
layout: 'auth'
}
},
and when use this obfuscator plugins, then I get follow error:
TypeError: Failed to resolve module specifier '@/views/Login?import'
at component (router.ts:51)
at extractComponentsGuards (vue-router.esm-bundler.js:1996)
at vue-router.esm-bundler.js:3085
Please help me, how to dynamic import ? Thank you.