mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Enable import attributes parsing by default * Remove plugin from tests * Update fixtures * Fix failures * `make build` * Fix TS errors * Fix * Update .d.ts * Move in core * [babel 8] Remove syntax plugins from preset-env * Update fixtures * Fix ESM build of Babel 7 and standalone * Update flow allowlist * Update parser fixtures for Babel 8 * Update generator tests * Update parser test * Update standalone * Do not run import attribtues plugin test in Babel 8 * Make tests pass in babel 8 * Fix Babel 8 build * [babel 8] Stop printing legacy "with" attributes * fix prettier integration test * Fix Babel 8 compat in syntax-import-attributes * Try fix * Do not error for the removed `importAttributes` plugin * Skip a test in babel7/8 compat e2e * Throw an error when using removed option from the parser * Fixes after rebase * Raise `ImportCallArity` also when `createImportExpressions` * Fix linting
83 lines
3.3 KiB
JSON
83 lines
3.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":36,"index":68}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":36,"index":68}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":6,"end":30,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":30,"index":30}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":18,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":18,"index":18},"identifierName":"testVariable"},
|
|
"name": "testVariable"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start":21,"end":30,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":30,"index":30}},
|
|
"extra": {
|
|
"rawValue": "test.js",
|
|
"raw": "'test.js'"
|
|
},
|
|
"value": "test.js"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":32,"end":68,"loc":{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":36,"index":68}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":32,"end":67,"loc":{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":35,"index":67}},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start":32,"end":57,"loc":{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":25,"index":57}},
|
|
"object": {
|
|
"type": "ImportExpression",
|
|
"start":32,"end":52,"loc":{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":20,"index":52}},
|
|
"source": {
|
|
"type": "Identifier",
|
|
"start":39,"end":51,"loc":{"start":{"line":2,"column":7,"index":39},"end":{"line":2,"column":19,"index":51},"identifierName":"testVariable"},
|
|
"name": "testVariable"
|
|
},
|
|
"options": null
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":53,"end":57,"loc":{"start":{"line":2,"column":21,"index":53},"end":{"line":2,"column":25,"index":57},"identifierName":"then"},
|
|
"name": "then"
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start":58,"end":66,"loc":{"start":{"line":2,"column":26,"index":58},"end":{"line":2,"column":34,"index":66}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":64,"end":66,"loc":{"start":{"line":2,"column":32,"index":64},"end":{"line":2,"column":34,"index":66}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|