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

Expose a means of passing node6 onto dependencies #6

Open
hughsk opened this issue Nov 10, 2014 · 2 comments
Open

Expose a means of passing node6 onto dependencies #6

hughsk opened this issue Nov 10, 2014 · 2 comments

Comments

@hughsk
Copy link
Member

hughsk commented Nov 10, 2014

For when using node6 in application code alongside packages that expect you to run node --harmony. Maybe this?

// just this package
require('node6')(__dirname)

// also these packages
require('node6')(__dirname, 'co')
require('node6')(__dirname, 'co-fs')

// just do everything in this package's node_modules tree
require('node6')(__dirname, true)

// or everything in co-fs
require('node6')(__dirname, 'co-fs', true)

koa, co and their ecosystem of packages all fall down otherwise, which would be a shame considering there's already been a lot of good stuff to come out of there.

@timoxley
Copy link
Member

Seems very invasive. Node6 should fill the role of polyfill. Maybe a package.json mapping?

@timoxley
Copy link
Member

Actually this isnt that bad. When I read this I thought it was a new require syntax?

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