mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +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
62 lines
2.1 KiB
JSON
62 lines
2.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":90,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":41,"index":90}},
|
|
"errors": [
|
|
"SyntaxError: Unexpected keyword 'import'. (1:4)",
|
|
"SyntaxError: Escape sequence in keyword import. (1:4)",
|
|
"SyntaxError: Escape sequence in keyword import. (3:0)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":90,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":41,"index":90}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":47,"index":47}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":46,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":46,"index":46}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":40,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":40,"index":40},"identifierName":"import"},
|
|
"name": "import"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start":43,"end":46,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":46,"index":46}},
|
|
"extra": {
|
|
"rawValue": 123,
|
|
"raw": "123"
|
|
},
|
|
"value": 123
|
|
}
|
|
}
|
|
],
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start":49,"end":90,"loc":{"start":{"line":3,"column":0,"index":49},"end":{"line":3,"column":41,"index":90}},
|
|
"specifiers": [],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start":86,"end":89,"loc":{"start":{"line":3,"column":37,"index":86},"end":{"line":3,"column":40,"index":89}},
|
|
"extra": {
|
|
"rawValue": "x",
|
|
"raw": "\"x\""
|
|
},
|
|
"value": "x"
|
|
},
|
|
"attributes": []
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|