mariocasciaro / scatter

IoC container and out-of-the-box extensibility for Node.js applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Browserify

mariocasciaro opened this issue · comments

This probably involves the creation of a transform to collect the dependencies and manually register them without using the resolver.

Would the output of the transform include a require for each of the dependencies? Can you explain a little more about your envisioned approach?

Yes, Scatter resolves its dependencies dynamically based on the configured particles, so Browserify won't be able to resolve those dependencies at the moment. A transform would implement the same resolving algorithm of Scatter to import all the dependencies in the bundle.