You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then:javascript-obfuscator to obfuscate and build the code,the browser will report the error,this error is all caused by dynamic loading (component: () => import('@/views/Home.vue'))
if router configuration like :
import Home from "@/views/Home.vue";
const router = createRouter({
...
routes:[{
name: 'Home',
path: '/',
component: Home,
}]
})
This way, the configuration error disappears, but the page cannot be dynamically loaded
dex-cb3a319f.js:1 Uncaught (in promise) TypeError: _0x3f0e01[_0x47a038(...)] is not a function
at Ee (index-cb3a319f.js:1:15316)
at component (index-cb3a319f.js:1:16688)
at Ge (vue-router-5778e0ed.js:6:31994)
at vue-router-5778e0ed.js:6:46741
Current Behavior
if router configuration like :
then:javascript-obfuscator to obfuscate and build the code,the browser will report the error,this error is all caused by dynamic loading (component: () => import('@/views/Home.vue'))
if router configuration like :
This way, the configuration error disappears, but the page cannot be dynamically loaded
Environment
vite 4.3.x
vue 3.2.x
element-plus 2.3.4
vue-router 4.1.6
javascript-obfuscator 4.0.2
nodejs 18.15.0
Stack trace
Minimal working example that will help to reproduce issue
router.ts
custom obfuscator plugin:
obfuscator.ts
vite.config.ts
Translation software may not be very accurate if it is not easy to use. Sorry!
The text was updated successfully, but these errors were encountered: