Inline ES Modules

Mike Samuel mikesamuel at
Tue Jun 19 20:01:21 UTC 2018

On Tue, Jun 19, 2018 at 3:48 PM Jamie <me at> wrote:

> I think having an inline module format would help make the composition of
> build tools much easier.
> Right now we have an ecosystem where everyone builds libraries into
> bundles using tools like Parcel, Rollup, Browserify, and Webpack. These
> create output which get recursively pulled into similar bundles.
> The problem is that the operation of merging files into bundles destroys
> static information we have with individual files. So optimizing compilers
> have difficulty doing code elimination (often called "tree shaking" in the
> community) across bundles.
> If we had a definition format for these bundlers to compile to which
> didn't destroy all the static information we have in separate files, we
> could build better optimizing compilers around them.
> I would hope that such a format would also allow engines to optimize the
> parsing of these inline modules (deferring most of the work until modules
> are actually loaded).
> There is other efforts in a similar space such was the webpackage format:

What benefits might an inline module proposal have over/in-conjunction-with
the webpackage format proposal?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list