I'm struggling to figure out how this code splitting works. As of now the JS file has become way too big and code splitting is a must. I saw Evan You writing this in a presentation:
const Component = () => import('./Component.vut')
But Webpack won't let me compile that.
I'm importing my components as
Vue.component('Component', require('./Component.vue'))
Hope some of you can help me out here :-)
Scott Cox
JavaScript Developer
I've not seen import used as a function before. Do you need to import it from a dependency first?