This project uses Angular 9.x or above with Ivy.
In progress / experimental!
Shows a plugin architecture where an application (main.js) can load dynamically Angular modules and components (from dyn.js) an both share common libs (third party like Angular and common application code like app-common.js).
The dynamic module (dyn.js) would be typically in separate project but is included here for simplicity.
Both, the main application and the dynamic module are build with rollup. The libs are defined to be externals for the application and the dynamic module and are also bundled with rollup.
For loading the bundles / modules, SystemJS 3.x is used.
Run npm run rollup-dev
for a dev-server on http://localhost:5000/
.
Ngc (Angular AOT Compiler) and rollup will both run in watch mode.
Run npm run rollup-prod
. Directory dist-rollup
will contain the build result.
Not maintained here.