Skip to content

Commit 844091f

Browse files
committed
wasm with dependency test
1 parent 1c24101 commit 844091f

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# mod.ts
2+
// This file depends on `./math.ts`, but that should not be loaded.
3+
import source module from "./math_with_import.wasm";
4+
5+
# math_with_import.wasm <= ../../../testdata/math_with_import.wasm
6+
7+
# math.ts
8+
// This file should not be loaded or included in the graph.
9+
10+
# output
11+
{
12+
"roots": [
13+
"file:///mod.ts"
14+
],
15+
"modules": [
16+
{
17+
"kind": "external",
18+
"specifier": "file:///math_with_import.wasm"
19+
},
20+
{
21+
"kind": "esm",
22+
"dependencies": [
23+
{
24+
"specifier": "./math_with_import.wasm",
25+
"code": {
26+
"specifier": "file:///math_with_import.wasm",
27+
"resolutionMode": "import",
28+
"span": {
29+
"start": {
30+
"line": 1,
31+
"character": 26
32+
},
33+
"end": {
34+
"line": 1,
35+
"character": 51
36+
}
37+
}
38+
}
39+
}
40+
],
41+
"size": 121,
42+
"mediaType": "TypeScript",
43+
"specifier": "file:///mod.ts"
44+
}
45+
],
46+
"redirects": {}
47+
}

0 commit comments

Comments
 (0)