I'm building a library with a large list of components. I don't want them 
all to be included in a build so I want it to be configurable by the user.

I know import statements is a big usage for tree shaking so I wanted to 
have all the components in the library but never imported from within the 
library. The User would then import from the components and choose which 
ones.

However when I do this i get an error from ng build saying "Cannot 
determine the module for class" ...

Does anyone know if angular somehow tree shakes / dead code elimination on 
components or how to silence the error?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to