Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Dynamic imports aren't unique to webpack, they're a standard feature.

The two different variants written are six of one half a dozen of the other. There's nothing stopping you from writing the imports + register in one file and dynamically importing it in a dom loaded event in another.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: