mariocasciaro / scatter

IoC container and out-of-the-box extensibility for Node.js applications
MIT License
154 stars 14 forks source link

Support for Browserify #25

Open mariocasciaro opened 10 years ago

mariocasciaro commented 10 years ago

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

gdw2 commented 10 years ago

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

mariocasciaro commented 9 years ago

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.