-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
can't use es6 import #1916
Comments
ops. it was my bad :) |
what was the mistake? |
|
@ScottFreeCode Thank you for your clarification. Now node 6.0 support most es6 features https://kangax.github.io/compat-table/es6/ , will mocha work with es6 by default in node 6.0 in the future? Right now it seems mocha wrap modules in some way:
|
@Chun-Yang As far as I can tell, Node 6 itself does not yet support the I guess that means it's not necessarily a matter of having an ES6 environment in general, but one that supports the module syntax specifically (which I thought that was part of ES6, but now I'm not sure; I'll have to look it up sometime). |
…add babel for transpile to run tests mochajs/mocha#1916
This is now not strictly true, is it. If I am running Node 9.5.0 in the context of a server side app, all I have to enable is the module import system is run with the |
This works:
`const verticals = require('./verticals');``
This doesn't work:
import verticals from './verticals';
The text was updated successfully, but these errors were encountered: