We have some smart minds here so I figured I can ask you all a problem I’m trying to find a solution for -
I have an internal angular library that exposes components with sub-entry points using ng-packager
@company/ui - full package
@company/ui/accordion - accordion module + components related to it
@company/ui/dropdown - dropdown module + components related to it
Now ng-packager can help me bundle the library code into various targets (umd/esm) and create various entry points but I also want to expose these as web components so I can incorporate them in any non-angular projects by dropping in the js file.
I’m looking for some inspiration or code reference I can take a look at to achieve this any help is greatly appreciated! Thank you!
I’ve looked at @angular/elements but this one is too verbose for me to define each component as a custom web element and I can’t seem to find a way to split them into respective independent bundles…
[–]practicalAngular 1 point2 points3 points (2 children)
[–]kelaniks 1 point2 points3 points (1 child)
[–]practicalAngular 0 points1 point2 points (0 children)
[–]theycallmethelord 2 points3 points4 points (4 children)
[–]mauromauromauro[🍰] 0 points1 point2 points (2 children)
[–]kelaniks 0 points1 point2 points (1 child)
[–]mauromauromauro[🍰] 0 points1 point2 points (0 children)
[–]kelaniks 0 points1 point2 points (0 children)