I have a couple of Angular UI libraries used in many applications. These libraries have more than 50 modules in them but the applications usually do a barrel import. I want to analyze their production bundle and find out which of the modules are used in the build.
When I use source-map-explorer or webpack-bundle-analyzer I get to see the library's root module only, is there any way from there to drill down further? Alternatively, I am thinking of creating a custom decorator in the library to print a message to console when used but the drawback I see is that the message will appear only on runtime not from build.
Is there a good way to derive this statistic?