0👍
You don’t need to require.ensure
Try this method const Foo = () => import('./Foo.vue')
from LazyLoading Vue
Webpack will be parsed another js file for each import()
- [Vuejs]-Multiple returns in a computed property
- [Vuejs]-Update to database happens more than it should – vue.js this.$router.push and express
Source:stackexchange.com