-
Notifications
You must be signed in to change notification settings - Fork 114
Conversation
To apply this to arbitrary trees:
If there's only one stripe, we can obviously skip all the above. |
This optimization is now functional! A limitation here is that we need to still handle applying Traceur / Babel in the pipeline which isn't done currently. One thing that will make this trivial will be separating transpilers out into plugins and then updating this implementation to reflect that. Waiting on progress there to land this. |
a64acb5
to
621f123
Compare
This would need to work by re-running the translate hook of the load record in question, and setting a metadata property say |
621f123
to
b816366
Compare
@guybedford do you have any docs for this? |
58020e3
to
828eb11
Compare
d2e7878
to
70744ea
Compare
👍 |
@rollup @systemjs @guybedford |
b816366
to
3169ae5
Compare
@kuraga this requires the new Babel plugin to work properly, so it will take a little while for things to fall into place still. |
This has been merged into #442 for the 0.15 release. |
@guybedford Just a question about this. Does this process "erase" the modules? For example, after optimizing in this way, can I still call |
@EisenbergEffect it only works on sfx builds, not normal bundles, so only the sfx shell remains, with the optimizations happening internally (sfx modules don't expose their internal modules already). |
I'm not overly familiar with what the sfx builds actually are that's different from normal I guess. |
@EisenbergEffect we're renaming sfx builds to |
Gotcha. I think Aurelia apps will continue to use only the bundling, but it may be that the Aurelia library modules and plugins can use jspm build. I'll be interested to see the details on how that works and what the final output is. Thanks! |
SFX build's good for Aurelia's examples (skeleton), isn't it? |
No. Aurelia requires the module id to not be erased in order for things like the router and view location to work. |
This is a very first attempt for the simplest of scenarios to use rollup for SFX bundles when everything is ES6.
The next stage will be to widen this to any tree via a zebra striping algorithm variation.