File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
tests/specs/graph/source_phase_imports Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # mod.ts
2+ import source module1 from "./nonexistent.wasm";
3+ const module2 = await import.source("./nonexistent.wasm");
4+
5+ # output
6+ {
7+ "roots": [
8+ "file:///mod.ts"
9+ ],
10+ "modules": [
11+ {
12+ "kind": "esm",
13+ "dependencies": [
14+ {
15+ "specifier": "./nonexistent.wasm",
16+ "code": {
17+ "specifier": "file:///nonexistent.wasm",
18+ "resolutionMode": "import",
19+ "span": {
20+ "start": {
21+ "line": 0,
22+ "character": 27
23+ },
24+ "end": {
25+ "line": 0,
26+ "character": 47
27+ }
28+ }
29+ }
30+ }
31+ ],
32+ "size": 108,
33+ "mediaType": "TypeScript",
34+ "specifier": "file:///mod.ts"
35+ },
36+ {
37+ "specifier": "file:///nonexistent.wasm",
38+ "error": "Module not found \"file:///nonexistent.wasm\"."
39+ }
40+ ],
41+ "redirects": {}
42+ }
You can’t perform that action at this time.
0 commit comments