Will I be able to import('foo.js') and have foo.js register modules foo, bar, lala all in one shot, from same file? @BrendanEich
-
-
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 -
Not sure how SW factors in here, can you clarify?
1 reply 0 retweets 0 likes -
SW can take whatever bundle format it wants and make it appear to the HTML as if many files.
1 reply 0 retweets 0 likes -
Sure but SW isn't installed on the first page load, so any solution has to work w/o SW as well.
1 reply 0 retweets 0 likes
you make the first load boring and upgrade quickly.
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.