When we use 'ngc' to compile source with skipTemplateCodegen set to false, so that ngc generates .ngfactory.js and when there is a angular module import where the imported module has entry components results component factories generated for those entry components as well and import statements are generated with relative paths.
What we've is, ngc to compile angular code (with factories generated) and bundle them into UMD using rollupjs; because of the additional component factories of entry components as mentioned above, bundled UMD is kind of polluted because of the import statements with relative paths to generated component factories of entry component of an imported angular module.
Any clue how to avoid/workaround this ?
Use https://github.com/iamrakesh/ng-extensions repo for reproduction. Generated UMD JavaScript can be looked at 'platform/assets/sample-ext.module.umd.js'
UPDATE: Actual project setup is based on https://github.com/maximusk/extension-mechanism-demo and https://github.com/lmeijdam/angular-umd-dynamic-example
UPDATE: Updated github repo to a different one with complete concept implementation.