forked from WICG/import-maps
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
depcache spec and reference implementation proposal
- Loading branch information
1 parent
d9101de
commit 751ef09
Showing
16 changed files
with
245 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"importMapBaseURL": "https://example.com/app/index.html", | ||
"tests": { | ||
"Depcache resolution": { | ||
"importMap": { | ||
"imports": { | ||
"a": "/a-1.mjs", | ||
"b": "/scope/b-1.mjs" | ||
}, | ||
"scopes": { | ||
"/a-1.mjs": { | ||
"a": "/a-2.mjs" | ||
}, | ||
"/scope/": { | ||
"a": "/scope/a-3.mjs", | ||
"b": "./b-2.mjs" | ||
} | ||
}, | ||
"depcache": { | ||
"/a-1.mjs": ["a"], | ||
"/a-2.mjs": ["b"], | ||
"/scope/b-1.mjs": ["./b-2.mjs"], | ||
"/scope/b-2.mjs": ["a"] | ||
} | ||
}, | ||
"tests": { | ||
"should trace full depcache": { | ||
"baseURL": "https://example.com/scope2/foo.mjs", | ||
"expectedDepcache": { | ||
"a": [ | ||
"https://example.com/a-1.mjs", | ||
"https://example.com/a-2.mjs", | ||
"https://example.com/scope/b-1.mjs", | ||
"https://example.com/scope/b-2.mjs", | ||
"https://example.com/scope/a-3.mjs" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,7 @@ | |
"scops": {} | ||
}, | ||
"expectedParsedImportMap": { | ||
"depcache": {}, | ||
"imports": {}, | ||
"scopes": {} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.