I'm using Laravel mix for compiling my vue.js components. Now I would like to lazy load my components found it here:
When I try this:
Vue.component('setting', () => import('./components/settings/setting.vue'));
error in ./resources/assets/admin/vue/core.js Syntax Error: Unexpected token (36:31) 34 | */ 35 | > 36 | Vue.component('setting', () => import('./components/settings/setting.vue')); | ^
What could be wrong here? When I register the component 'normal' everything is working?
Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.