Re: Are ES6 modules in browsers going to get loaded level-by-level?

2020-10-22 Thread Augusto Moura
We could wirte a simpler parser just for the imports subset, given the simpler isolated grammar I don't think is that hard with parser combinators. Maybe it's a cool idea for a npm library that just points out the dependencies of a single file and then recursively scan the rest. From that is just

Re: Are ES6 modules in browsers going to get loaded level-by-level?

2020-10-22 Thread J Decker
On Thu, Oct 22, 2020 at 2:23 PM #!/JoePea wrote: > > It's caused me some headaches especially when dealing with > inheritance/extends and in workers. > > Like, extending from a `Module` object? > > > Maybe someday we'll have a `modules` collection we can interrogate. > > That may be nice, to

Re: Are ES6 modules in browsers going to get loaded level-by-level?

2020-10-22 Thread #!/JoePea
> It's caused me some headaches especially when dealing with > inheritance/extends and in workers. Like, extending from a `Module` object? > Maybe someday we'll have a `modules` collection we can interrogate. That may be nice, to query which modules have already been imported, etc. It would