-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
Parsing Error with dynamic imports #232
Comments
I'm not sure |
esnext: true sets the parser to babel-eslint right? I'm pretty sure babel-eslint supports import() |
|
@kevva I set the parser and it still fails |
And you have installed it I presume? |
@kevva yes. |
Works fine for me: // x.js
'use strict';
import('y.js').then(m => {
console.log(m);
}); // package.json
{
"dependencies": {
"babel-eslint": "^7.2.3",
"xo": "^0.18.2"
},
"xo": {
"parser": "babel-eslint"
}
} |
Oops, The babel-eslint readme showed |
I have:
and I still get a parsing error with
import(....
Adding the parser explicitly in xo config (
"parser": "babel-eslint"
) doesn't help either.The text was updated successfully, but these errors were encountered: