webpack-simple icon indicating copy to clipboard operation
webpack-simple copied to clipboard

Switch to stage-2 to support code-splitting

Open Akryum opened this issue 7 years ago • 3 comments

Some Vue.js evangelists (pun to @TheLarkInn) love to communicate about how easy it is to use webpack code-splitting with Vue. So it would be nice to support it out-of-the-box in this template, by switching babel-preset-stage-3 to babel-preset-stage-2 that includes syntax-dynamic-import.

Akryum avatar Nov 26 '17 19:11 Akryum

Uhm why is that necessary? Doesn't Webpack replace the import with its own stuff anyway?

LinusBorg avatar Dec 12 '17 12:12 LinusBorg

Well, you will still have a babel syntax error.

Akryum avatar Dec 12 '17 12:12 Akryum

Oh right, of course.

LinusBorg avatar Dec 12 '17 12:12 LinusBorg