-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node style requires #3
Comments
+99999 commonjs is the way to go for sure if this hasn't been implemented yet, we could re-use all 400+ github.com/component and many node modules |
Well, providing a CommonJS style I kept this issue around, because I wanted to see demand for it, but my thought is, that you use Ejecta to make things, that were written for the Browser, work on iOS devices. And Browsers don't have CommonJS support either. A NodeJS implementation on iOS is a nice idea too, but quite a different endeavor. |
it's easy to make browsers support commonjs, that's what component is, all of those that are not dom-related would work just fine with ejecta. The current way we develop js is hindered by browsers and their lack of modularity but nothing will fix that, only user-land can fix this, and that's what component is doing |
Oh, I'm sorry. I assumed all those modules were nodejs specific. I still think the current behaviour of |
|
Just added the CommonJS style I tested a few example modules with and it seemed to work fine. Please let me know if there's anything missing. |
Fix require to function similar to node js encapsulating seperate scripts in thier own context similar to titanium. Pull request may follow if my cappy obj-c skills permit. Thanks for the awesome opensource !
The text was updated successfully, but these errors were encountered: