jspm / registry

The jspm registry and package.json override service
https://jspm.io
229 stars 256 forks source link

feat(@angular/*): use different main entry in production mode #986

Open frederikschubert opened 7 years ago

frederikschubert commented 7 years ago

When setting production to true, the main entry is set to the index.js file. The file (like the other files in the src directory) is an ES5 JavaScript file with ES6 module format. Using this file instead of the UMD bundle allows for tree-shaking when building the package in production mode using rollup.

frederikschubert commented 7 years ago

I will try to test it with a 0.16 project. The speedup during development comes from the fact that only one UMD has to be loaded and not ~800 files so the transpilation is not the bottleneck. It is almost impossible to test angular applications without the bundle on IE which loads only 2 files in parallel...

guybedford commented 7 years ago

Ok sure that is understandable.