systemjs-basic-optimize
v1.2.0
Published
A basic three-layer bundle optimization function for the systemjs loader.
Downloads
5
Maintainers
Readme
SystemJS Bundle Optimization
There is a plan to add automated bundle optimization into SystemJS - see here. Originally written as a default option for the zygo framework, it might be useful in the future to others.
What it does:
This optimization is very simple:
- Put all modules shared by every page into a common bundle.
- Each group of modules shared by some but not all of the pages are bundles separately.
- Modules specific to a given page are bundled separately.
Note that step one and three are actually just special cases of step two. This particular optimization function guarantees no module duplication in the resulting set of bundles.
If you have any ideas regarding bundle optimization or APIs for doing it, please contribute to the discussion!