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
78 lines
2.9 KiB
JSON
78 lines
2.9 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":62,"index":62}},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
|
|
"local": {
|
|
"type": "StringLiteral",
|
|
"start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
|
|
"extra": {
|
|
"rawValue": "學而時習之,不亦說乎?",
|
|
"raw": "\"學而時習之,不亦說乎?\""
|
|
},
|
|
"value": "學而時習之,不亦說乎?"
|
|
},
|
|
"exported": {
|
|
"type": "StringLiteral",
|
|
"start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
|
|
"extra": {
|
|
"rawValue": "學而時習之,不亦說乎?",
|
|
"raw": "\"學而時習之,不亦說乎?\""
|
|
},
|
|
"value": "學而時習之,不亦說乎?"
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":24,"end":42,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":42,"index":42}},
|
|
"local": {
|
|
"type": "StringLiteral",
|
|
"start":24,"end":33,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":33,"index":33}},
|
|
"extra": {
|
|
"rawValue": "吾道一以貫之。",
|
|
"raw": "\"吾道一以貫之。\""
|
|
},
|
|
"value": "吾道一以貫之。"
|
|
},
|
|
"exported": {
|
|
"type": "StringLiteral",
|
|
"start":37,"end":42,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":42,"index":42}},
|
|
"extra": {
|
|
"rawValue": "忠恕。",
|
|
"raw": "\"忠恕。\""
|
|
},
|
|
"value": "忠恕。"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start":50,"end":61,"loc":{"start":{"line":1,"column":50,"index":50},"end":{"line":1,"column":61,"index":61}},
|
|
"extra": {
|
|
"rawValue": "Confucius",
|
|
"raw": "\"Confucius\""
|
|
},
|
|
"value": "Confucius"
|
|
},
|
|
"declaration": null,
|
|
"attributes": []
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|