-
-
Notifications
You must be signed in to change notification settings - Fork 255
import.meta: Stage 2 #539
Comments
How should the tree look like when
ESTree specifically defined an https://github.com/estree/estree/blob/master/experimental/import-expression.md |
I'd vote for making it like I believe ESTree's import expression is just to support dynamic import: |
The reasoning for naming it It would be nice to be able to have |
I'm sad I wasn't paying attention when that decision was made, then. Not a big fan of the |
* Add plugin for import.meta proposal Fixes #539 * Tests for assignment/mutation of import.meta * Use correct identifier in failure message * Simpler & more consistent script errors for import.meta
@babel-bot move to babel/babel |
Hey @hzoo! I've moved your issue to the correct repository. Please make sure to keep an eye on the new issue for the latest information. |
Info
Proposed at TC39 Meeting: May 2017
Spec Repo: https://github.com/tc39/proposal-import-meta
Spec Text: https://tc39.github.io/proposal-import-meta/
Example
Parsing/ESTree
MetaProperty
likenew.target
new.target
viaconst metaProp = this.parseMetaProperty(node, meta, "target");
atbabylon/src/parser/expression.js
Line 715 in 50694f9
babylon/src/parser/expression.js
Line 429 in 50694f9
Transform
The text was updated successfully, but these errors were encountered: