-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
import.meta: (Stage 3) #10
Comments
Any preferences for what this should desugar to in a babel world? A possible default implementation would just create an empty |
I believe ModuleRecords should be frozen as well as being null objects. |
The |
See also "Will this be locked down": https://github.com/tc39/proposal-import-meta#will-this-object-be-locked-down-in-any-way |
Since it's left up to the implementation, my opinion is that Babel should freeze it until either the spec is finalized or we discover a reason it can't be for Babel's purposes. We'll see what other implementations want to do and what the committee finally accepts. |
The spec is finalized; it won't be locked down. |
Regarding the transform:
We're in need of a simple transform to replace import.meta with an object that has a |
Original issue submitted by @hzoo in babel/babel#5832
Original issue submitted by @hzoo in babel/babylon#539
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/
Moved to Stage 3 at the Sept 2017 meeting
Example
Parsing
Transform
The text was updated successfully, but these errors were encountered: