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

Add import.meta support #1281

Closed
Lcfvs opened this issue May 17, 2019 · 1 comment

Comments

@Lcfvs
Copy link

commented May 17, 2019

What version of standard?
12.0.1

What operating system, Node.js, and npm version?
OS: Windows
Node: 12.1.0
NPM: 6.9.0

What did you expect to happen?
I use my own tool @lcf.vs/mjs-path, to resolve my paths, using the import.meta

import meta from '@lcf.vs/mjs-path'
 
const __filename = meta.filename(import.meta)

What actually happened?
Got this error "Parsing Error: Unexpected token import"

@feross

This comment has been minimized.

Copy link
Member

commented Aug 13, 2019

import.meta is a stage 3 proposal currently. ESLint only supports stage 4 proposals. For everything else, you can use babel-eslint. See https://standardjs.com/#how-do-i-use-experimental-javascript-es-next-features

@feross feross closed this Aug 13, 2019

@feross feross added the question label Aug 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.