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

freedom['x'] vs require('x') #210

Open
ryscheng opened this issue Jan 22, 2015 · 1 comment
Open

freedom['x'] vs require('x') #210

ryscheng opened this issue Jan 22, 2015 · 1 comment
Milestone

Comments

@ryscheng
Copy link
Member

We have freedom['x'] to retrieve a dependency/permission
and freedom().provideAsync(...) to export a class

At this point we're not far off from CommonJS.
What would it take to support it directly?

@ryscheng ryscheng added this to the freedom v0.7 milestone Jan 22, 2015
@agallant
Copy link

agallant commented Nov 6, 2015

Worth noting that we now also have require in the core API to dynamically load dependencies. https://github.com/freedomjs/freedom/blob/master/providers/core/core.unprivileged.js#L208

I don't believe it's exactly CommonJS, but a step closer.

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