I'm really hopeful that <script type=module> will mark the death of bundlers as a development tool. Hopeful, not certain.
-
-
Replying to @matthewcp
Isn't the `import` spec being written to allow for bundling/registering multiple modules in 1 physical file? cc
@BrendanEich1 reply 0 retweets 0 likes -
Replying to @AdamRackis @BrendanEich
I don't know *exactly* what you're asking but I'm still pretty sure the answer is "no".
1 reply 0 retweets 0 likes -
Replying to @matthewcp
Will I be able to import('foo.js') and have foo.js register modules foo, bar, lala all in one shot, from same file?
@BrendanEich2 replies 0 retweets 0 likes -
Replying to @AdamRackis
You are using import as a function, is that essential? Also "from same file" ill defined in JS terms. Pls. rephrase.
@matthewcp2 replies 0 retweets 0 likes -
Replying to @BrendanEich @AdamRackis
He's asking if you can bundle multiple ES modules in a single file.
2 replies 0 retweets 1 like -
-
Replying to @AdamRackis @BrendanEich
I believe this kind of approach is more likely:https://github.com/w3ctag/packaging-on-the-web …
1 reply 0 retweets 0 likes -
Replying to @matthewcp @AdamRackis
Something like that; it's browser-specific so W3C, not Ecma. I'm at TC39 meeting right now, will double-check.
2 replies 0 retweets 1 like -
"single file" in the face of service worker is somewhat meaningless. Web page will see many 1/
2 replies 0 retweets 0 likes
single files, but they may be delivered as a package. 2/2
-
-
Replying to @wycats @BrendanEich and
HTTP/2 at the moment has a bunch of overhead per small module, makes packaging still impt.
0 replies 1 retweet 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.