DEV Community

Discussion on: Bundling Angular Modules

Collapse
chan_austria777 profile image
chan 🤖

Awesome article. I just want to ask if is there a way to bundle eager-loaded modules similar to lazy-loaded modules? I'm trying to figure that one out, we need it in our use case for developing browser extension

Collapse
christiankohler profile image
Christian Kohler Author

Hey Chan, thank you. I don't understand your question. Could you give me some more context?

Collapse
chan_austria777 profile image
chan 🤖 • Edited on

sure, basically we need to compile certain modules to their own bundle file. The only way Angular creates a separate bundle is when they're lazy-loaded using routes, but is there a way to create a separate bundle for modules that are non-routed.

We need to bundle certain modules since we want to embed those certain modules inside a iframe.