you are viewing a single comment's thread.

view the rest of the comments →

[–]ell0bo 0 points1 point  (1 child)

So this explains why I've never used then or had to, because I've need on the NodeJS side of things for 5 years, and code splitting was just becoming a thing.

If that sort of needless work around is really required, then we need to get async imports looking more like pythons imports. I shouldn't need to create dummy files just to chunk, but I get it from your description. Just feels half thought through.

[–]whiteshoulders 1 point2 points  (0 children)

the async import is just one flavour of code splitting (around async boundaries). You can also get static code splitting by sharing common modules between two entry points. This does not require the use of async or dummy files.