[w3ctag/design-reviews] import.meta.resolve() (Issue #746)

Wotcher TAG!

I'm requesting a TAG review of import.meta.resolve().

`import.meta.resolve(specifier)` returns the URL to which `specifier` would resolve in the context of the current script. That is, it returns the URL that would be imported if you did `import(specifier)`.

This is a quite small feature (a single function, with only a few lines of spec text which exposes an already-existing spec algorithm).

  - Explainer¹ (minimally containing user needs and example code): https://gist.github.com/domenic/f2a0a9cb62d499bcc4d12aebd1c255ab

  - Specification URL: https://github.com/whatwg/html/pull/5572

  - Tests: https://github.com/web-platform-tests/wpt/pull/34188

  - User research: None
  - Security and Privacy self-review²: https://gist.github.com/domenic/f2a0a9cb62d499bcc4d12aebd1c255ab#security-and-privacy

  - Primary contacts (and their relationship to the specification):
      - Domenic Denicola (@domenic), Google
  - Organization(s)/project(s) driving the specification: Google
  - Key pieces of existing multi-stakeholder review or discussion of this specification: https://github.com/whatwg/html/issues/3871 https://github.com/whatwg/html/pull/5572

  - External status/issue trackers for this specification (publicly visible, e.g. Chrome Status): https://chromestatus.com/feature/5086507990777856


Further details:

  - [x] I have reviewed the TAG's [Web Platform Design Principles](https://www.w3.org/TR/design-principles/)
  - Relevant time constraints or deadlines: Chrome would like to ship this within a few weeks.
  - The group where the work on this specification is currently being done: WHATWG
  - Major unresolved issues with or opposition to this specification: There was some opposition from Node.js about how synchronous semantics would conflict with their existing experimental async semantics; see the [discussion in the explainer](https://gist.github.com/domenic/f2a0a9cb62d499bcc4d12aebd1c255ab#sync-vs-async). I believe these have been largely resolved.
  - This work is being funded by: Google

We'd prefer the TAG provide feedback as (please delete all but the desired option):

  💬 leave review feedback as a **comment in this issue** and @-notify @domenic

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/746

You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/746@github.com>

Received on Monday, 6 June 2022 16:13:17 UTC