Replies: 1 comment 1 reply
-
|
Actually I've added a proposal about this long time ago and forgot about it - tc39/proposal-module-expressions#52 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I wish there was a support for code splitting within single file, for example with module expression syntax :
Webpack would produce 2 files:
file1.js:file2.js:In our app we have many modules that mostly only add some condition about when to lazy-load other module and the dynamic import itself. It would make our code less cluttered if both parts would be in a single file as they belong together. Example.
I am not sure if it could be part of dedicated Babel plugin, part of a Webpack or both. What do you think?
Beta Was this translation helpful? Give feedback.
All reactions