steveblue / angular2-rollup

CLI for bundling Angular with Rollup and Closure Compiler
121 stars 18 forks source link

Using Rollup for development #9

Closed barretodavid closed 7 years ago

barretodavid commented 7 years ago

This is more a question than a bug report. Why did you choose SystemJS for development and testing, and Rollup for production instead of just using Rollup in all the environments (with different configurations)? It seems harder to maintain with two different module loaders.

steveblue commented 7 years ago

JIT is used for local development primarily because livereload can be triggered in a fraction of the time it takes Rollup to bundle. This is particularly noticeable as application scales. It is possible to trigger livereload on both JIT and AOT compile. The way its setup is to make it less painful to maintain both but it may be configurable in some way to make it even more convenient. This way local development can still be fast and efficient, but engineers can still choose to build for production locally but get slower process as a result.