Skip to content
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

Where is require() #77

Open
CNSKnight opened this issue Jun 12, 2015 · 3 comments
Open

Where is require() #77

CNSKnight opened this issue Jun 12, 2015 · 3 comments

Comments

@CNSKnight
Copy link

Sorry - might be overlooking something in RaveJS doc, but where is/how to reference AMD require() API feature?

@unscriptable
Copy link
Contributor

A require function is injected into the scope of each module, just like normal AMD and CommonJS. I guess I didn't think to document this since it's standard behavior?

@CNSKnight
Copy link
Author

Ah - define()'s special dependencies ['require', 'module', 'exports']

@note as curl() ≟≟≟ require() - I could/did use curl() globally?

@unscriptable
Copy link
Contributor

Actually, curl != require. One of AMD's problems that may be fixed in the official loaders is the lack of separation of the import API from the bootstrap API, which is usually a global. These APIs should be separate. Rave takes this to the extreme and eliminates the bootstrap global from user space, entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants