Skip to content
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

feat: polyfill multiple import maps #443

Merged
merged 3 commits into from
Jan 6, 2025
Merged

Conversation

guybedford
Copy link
Owner

This implements a polyfill for the new multiple import maps feature in Chrome (https://groups.google.com/a/chromium.org/g/blink-dev/c/4JWXZilDG6w).

I've tested this in Canary and can confirm it works correctly with the baseline passthrough mode engagement.

Multiple import maps actually flip the logic on the previous native subgraph passthrough feature that was formerly disabled in #208. With multiple import maps it is now possible to start out on baseline import maps support fully on the native loader, but then later on switch into polyfilling some graphs as needed if multiple import maps are later used.

This PR supports this new ability to "swich off" baseline passthrough as soon as multiple import maps come into play, and then in order to preserve instancing now reenables subgraph native passthrough.

The changes for this are documented in the readme and the multiple import maps feature also includes its own caveats.

@guybedford guybedford merged commit 26cd3db into main Jan 6, 2025
10 checks passed
@guybedford guybedford deleted the multiple-import-maps branch January 6, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant