getkey / rollup-plugin-obfuscator

The most powerful rollup plugin for javascript-obfuscator.
Mozilla Public License 2.0
112 stars 9 forks source link

Can not use it in Vite demo #3

Closed allran closed 3 years ago

allran commented 3 years ago

RT

getkey commented 3 years ago

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

allran commented 3 years ago

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.

getkey commented 3 years ago

@allran, did you find a solution?

soylomass commented 2 years ago

@allran @getkey Were you able to solve this?