File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
tests/specs/graph/source_phase_imports Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments