-
Notifications
You must be signed in to change notification settings - Fork 23
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.resolve() #2
Comments
This looks reasonable. Our internal implementation starts with async |
Thanks @marcoscaceres and @Constellation! I've merged the HTML spec PR, so there is now a spec at https://html.spec.whatwg.org/#hostgetimportmetaproperties . Tests are at web-platform-tests/wpt#34188 and I filed a WebKit bug at https://bugs.webkit.org/show_bug.cgi?id=242163 . Let me know if there's anything else I can help with. |
Thanks @domenic! That's great. And thanks also for filling the WebKit bug. 🙏 |
The sync version seems fairly easily polyfill-able. That’s not to say that it’s useless to add to browsers; it just seems like it wouldn’t be high priority. Regarding the async version:
This is certainly more powerful than the sync version, but 1. Is probably not what authors actually want, and 2. Seems complicated enough that I don’t know how it would actually work. |
WebKit/WebKit@78c6d6d Landed into WebKit. |
Closing as we've identified our position. |
Request for position on an emerging web specification
Information about the spec
Design reviews and vendor positions
Bugs tracking this feature
Anything else we need to know
On WebKit-dev, @domenic proposed:
We're proposing a small additional function to add to the HTML Standard, named import.meta.resolve(). See the PR 1 and a mini-explainer 2. Gecko folks have reviewed the PR and contributed to the discussion, but any thoughts from WebKit would be very welcome.
We're hoping to ship in Chrome within the next few weeks, and I imagine web developers would love it if you were to also implement. We have a basic implementation and web platform tests you may find useful 3.
Thanks,
Domenic
The text was updated successfully, but these errors were encountered: