Lazy loading method for vue routing

this way of writing will prompt critical dependecy

vue-router document

const Foo = () => import("./Foo.vue")

resolve   
Mar.16,2021
There is no problem with

. If you really want to say where there is a problem, there is only the'.. /'of require (['.. / components']), the extension of webpack automatic parsing. You don't know how to set


suggest following the vue-router document

.
Menu