Support Import Attributes (#14863)
* Print import attributes * Update visitor keys for import attributes * Update snapshots for visitor-keys * Update `babel-plugins` tests * Update import attributes tests * Update misc tests * Add changelog * Enable `importAttributes` and `importAssertions` * Print ImportAssertion syntax * Add `babel-plugins` tests * Add import assertions tests * Add misc tests for import assertions * Update changelog * Fix words * Use `deprecatedAssertSyntax` * Update `@babel/parser` * Use deprecatedAssertSyntax * Remove needless tests * Update `@babel/types` * Update visitor-keys * Run `yarn dedupe` * Update src/language-js/print/module.js Co-authored-by: Nicolò Ribaudo <hello@nicr.dev> * Address review --------- Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>
This commit is contained in:
1 parent
7ba38c250d
commit
7ad852636d
30 files changed
+688
-28
No files matched your search
@@ -263,8 +263,9 @@ exports[`visitor keys estree 1`] = `
|
||||
],
|
||||
"ExportAllDeclaration": [
|
||||
"source",
|
||||
"exported",
|
||||
"attributes",
|
||||
"assertions",
|
||||
"exported",
|
||||
],
|
||||
"ExportDefaultDeclaration": [
|
||||
"declaration",
|
||||
@@ -276,6 +277,7 @@ exports[`visitor keys estree 1`] = `
|
||||
"declaration",
|
||||
"specifiers",
|
||||
"source",
|
||||
"attributes",
|
||||
"assertions",
|
||||
],
|
||||
"ExportNamespaceSpecifier": [
|
||||
@@ -354,6 +356,7 @@ exports[`visitor keys estree 1`] = `
|
||||
"ImportDeclaration": [
|
||||
"specifiers",
|
||||
"source",
|
||||
"attributes",
|
||||
"assertions",
|
||||
],
|
||||
"ImportDefaultSpecifier": [
|
||||
|
||||
Reference in new issue
Block a user