swc/crates/swc_ecma_parser/tests/tsc/extensionLoadingPriority.json

164 lines
3.1 KiB
JSON

{
"type": "Module",
"span": {
"start": 142,
"end": 424,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultExpression",
"span": {
"start": 142,
"end": 164,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 157,
"end": 163,
"ctxt": 0
},
"value": "a.js",
"raw": "\"a.js\""
}
},
{
"type": "ExportDefaultExpression",
"span": {
"start": 197,
"end": 222,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 212,
"end": 221,
"ctxt": 0
},
"value": "a.js.js",
"raw": "\"a.js.js\""
}
},
{
"type": "ExportDefaultExpression",
"span": {
"start": 260,
"end": 290,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 275,
"end": 289,
"ctxt": 0
},
"value": "dir/index.ts",
"raw": "\"dir/index.ts\""
}
},
{
"type": "ExportDefaultExpression",
"span": {
"start": 322,
"end": 346,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 337,
"end": 345,
"ctxt": 0
},
"value": "dir.js",
"raw": "\"dir.js\""
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 376,
"end": 399,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"span": {
"start": 383,
"end": 384,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 383,
"end": 384,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 390,
"end": 398,
"ctxt": 0
},
"value": "./a.js",
"raw": "\"./a.js\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 400,
"end": 424,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"span": {
"start": 407,
"end": 410,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 407,
"end": 410,
"ctxt": 0
},
"value": "dir",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 416,
"end": 423,
"ctxt": 0
},
"value": "./dir",
"raw": "\"./dir\""
},
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}