Bug 279025
Summary: | Support multiple import maps | ||
---|---|---|---|
Product: | WebKit | Reporter: | Yoav Weiss <yoav> |
Component: | WebCore Misc. | Assignee: | Yoav Weiss <yoav> |
Status: | RESOLVED FIXED | ||
Severity: | Enhancement | CC: | achristensen, cdumez, webkit-bug-importer, yoav, ysuzuki |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Yoav Weiss
Import maps currently have to load before any ES module and there can only be a single import map per document. That makes them fragile and potentially slow to use in real-life scenarios: Any module that loads before them breaks the entire app, and in apps with many modules the become a large blocking resource, as the entire map for all possible modules needs to load first.
There's a proposal[1] to enable multiple import maps per document, by merging them in a consistent and deterministic way.
WebKit standard position - https://github.com/WebKit/standards-positions/issues/381
[1] https://github.com/whatwg/html/pull/10528
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/135555516>
Yoav Weiss
Pull request: https://github.com/WebKit/WebKit/pull/37540
EWS
Committed 287450@main (6d04bab3553f): <https://commits.webkit.org/287450@main>
Reviewed commits have been landed. Closing PR #37540 and removing active labels.
Yoav Weiss
I probably mislabeled the relevant PR. It is related, but doesn't solve this.
Yoav Weiss
Pull request: https://github.com/WebKit/WebKit/pull/37896
EWS
Committed 288358@main (c363df60bf58): <https://commits.webkit.org/288358@main>
Reviewed commits have been landed. Closing PR #37896 and removing active labels.