#208: import.meta.url, and import.meta generally

Visit on Github.

Opened Oct 20, 2017

Dear Sirs and Madam of TAG!

Another ECMAScript/web platform-spanning review for you all.

Further details (optional):

You should also know that...

This design went through a lot of discussion at TC39 as to the exact syntax for exposing per-module metadata. You can find some minutes discussing the above-linked presentation if you are curious as to how the specific choices here were arrived at.

We'd prefer the TAG provide feedback as (please select one):

  • open issues in our Github repo for each point of feedback
  • open a single issue in our Github repo for the entire review
  • leave review feedback as a comment in this issue

If the TAG is interested, we're currently trying to figure out how to add a second import.meta property, import.meta.scriptElement, but it is a bit tricky. Feel free to help us out at whatwg/html#1013; the trouble starts around https://github.com/whatwg/html/issues/1013#issuecomment-329344476 .

Discussions