getkey/rollup-plugin-obfuscator

Can not use it in Vite demo

allran opened this issue · 4 comments

RT

Please be more specific: a stack trace or a repro would be appreciated. Feel free to reopen with more details.

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.

@allran, did you find a solution?

@allran @getkey Were you able to solve this?