lmeijdam / angular-umd-dynamic-example

Angular UMD example of loading new modules dynamically
174 stars 57 forks source link

Bundling Third-Party Dependencies In Library #9

Open collindutter opened 5 years ago

collindutter commented 5 years ago

Thanks for the very useful repo! We're running into one issue though.

Is there a way we can configure this so that the base application doesn't need to know about the library's third-party dependencies? In this example, Clarity is installed in the base application, but is there a way to provide it in the library instead?

Following this issue https://github.com/ng-packagr/ng-packagr/issues/1231 I've gotten the library bundle to include the third party dependency, but I can't seem to load it in the base application.

Any suggestions? Thanks!

jaichandra commented 5 years ago

I would also like to know how we can bundle third-party libraries into the library bundle and not into the consuming app.