-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 map composition implementation #1999
Comments
I just wanted to provide my implementation notes on the approach before I start, based on following the reference implementation PR. The behaviours expected for import map composition are the following:
//cc @michaelficarra @bakkot I hope the above sounds like a sensible summary of the behaviours. If there are any gaps in the logic do let me know. |
That all looks right, except:
Consider merging {
"imports": {
"a": [],
"b": [],
"c": ["x"]
}
} and {
"imports": {
"y": ["a", "b", "c"]
}
} so that the first map already exists and the second is being added on top of it. Then the fallback array for Also, a couple of points you didn't mention:
|
Thanks @bakkot for the quick feedback here, that helps a lot.
I've corrected the note on this.
We already implement this merging strategy in SystemJS actually.
I've also updated the notes on this point. |
PR created at #2009. |
Released in 6.0.0. |
There has been progress on this in WICG/import-maps#167.
Before releasing v6 it would be worthwhile to see if we should be implementing this approach or not, to avoid the immediate need for a v7 release.
The text was updated successfully, but these errors were encountered: