-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathfile_export.txt
More file actions
44 lines (42 loc) · 917 Bytes
/
file_export.txt
File metadata and controls
44 lines (42 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# mod.ts
import "./file.cjs";
# file.cjs
export class Test {}
# output
{
"roots": [
"file:///mod.ts"
],
"modules": [
{
"specifier": "file:///file.cjs",
"error": "'import', and 'export' cannot be used outside of module code\n |\n1 | export class Test {}\n | ~~~~~~\n at file:///file.cjs:1:1"
},
{
"kind": "esm",
"dependencies": [
{
"specifier": "./file.cjs",
"code": {
"specifier": "file:///file.cjs",
"resolutionMode": "import",
"span": {
"start": {
"line": 0,
"character": 7
},
"end": {
"line": 0,
"character": 19
}
}
}
}
],
"size": 21,
"mediaType": "TypeScript",
"specifier": "file:///mod.ts"
}
],
"redirects": {}
}