Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the updated import attributes proposal (#15536)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
- Loading branch information
1 parent
56a6c85
commit 4b5ebdc
Showing
418 changed files
with
7,707 additions
and
203 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...abel-generator/test/fixtures/importAttributesKeyword/assertions-assert-to-assert/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
4 changes: 4 additions & 0 deletions
4
...-generator/test/fixtures/importAttributesKeyword/assertions-assert-to-assert/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["importAssertions"], | ||
"importAttributesKeyword": "assert" | ||
} |
1 change: 1 addition & 0 deletions
1
...bel-generator/test/fixtures/importAttributesKeyword/assertions-assert-to-assert/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
1 change: 1 addition & 0 deletions
1
...bel-generator/test/fixtures/importAttributesKeyword/assertions-assert-to-default/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
3 changes: 3 additions & 0 deletions
3
...generator/test/fixtures/importAttributesKeyword/assertions-assert-to-default/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["importAssertions"] | ||
} |
1 change: 1 addition & 0 deletions
1
...el-generator/test/fixtures/importAttributesKeyword/assertions-assert-to-default/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
1 change: 1 addition & 0 deletions
1
...generator/test/fixtures/importAttributesKeyword/assertions-assert-to-with-legacy/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
5 changes: 5 additions & 0 deletions
5
...rator/test/fixtures/importAttributesKeyword/assertions-assert-to-with-legacy/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": ["importAssertions"], | ||
"importAttributesKeyword": "with-legacy", | ||
"expectedReParseError": true | ||
} |
1 change: 1 addition & 0 deletions
1
...enerator/test/fixtures/importAttributesKeyword/assertions-assert-to-with-legacy/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with type: "json"; |
1 change: 1 addition & 0 deletions
1
.../babel-generator/test/fixtures/importAttributesKeyword/assertions-assert-to-with/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
4 changes: 4 additions & 0 deletions
4
...el-generator/test/fixtures/importAttributesKeyword/assertions-assert-to-with/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["importAssertions"], | ||
"importAttributesKeyword": "with" | ||
} |
1 change: 1 addition & 0 deletions
1
...babel-generator/test/fixtures/importAttributesKeyword/assertions-assert-to-with/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
1 change: 1 addition & 0 deletions
1
.../babel-generator/test/fixtures/importAttributesKeyword/assertions-with-to-assert/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
4 changes: 4 additions & 0 deletions
4
...el-generator/test/fixtures/importAttributesKeyword/assertions-with-to-assert/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["importAssertions"], | ||
"importAttributesKeyword": "assert" | ||
} |
1 change: 1 addition & 0 deletions
1
...babel-generator/test/fixtures/importAttributesKeyword/assertions-with-to-assert/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
1 change: 1 addition & 0 deletions
1
...babel-generator/test/fixtures/importAttributesKeyword/assertions-with-to-default/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
5 changes: 5 additions & 0 deletions
5
...l-generator/test/fixtures/importAttributesKeyword/assertions-with-to-default/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": ["importAssertions"], | ||
"warns": "You are using import attributes, without specifying the desired output syntax.", | ||
"expectedReParseError": true | ||
} |
1 change: 1 addition & 0 deletions
1
...abel-generator/test/fixtures/importAttributesKeyword/assertions-with-to-default/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with type: "json"; |
1 change: 1 addition & 0 deletions
1
...l-generator/test/fixtures/importAttributesKeyword/assertions-with-to-with-legacy/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
5 changes: 5 additions & 0 deletions
5
...nerator/test/fixtures/importAttributesKeyword/assertions-with-to-with-legacy/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": ["importAssertions"], | ||
"importAttributesKeyword": "with-legacy", | ||
"expectedReParseError": true | ||
} |
1 change: 1 addition & 0 deletions
1
...-generator/test/fixtures/importAttributesKeyword/assertions-with-to-with-legacy/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with type: "json"; |
1 change: 1 addition & 0 deletions
1
...es/babel-generator/test/fixtures/importAttributesKeyword/assertions-with-to-with/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
4 changes: 4 additions & 0 deletions
4
...abel-generator/test/fixtures/importAttributesKeyword/assertions-with-to-with/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["importAssertions"], | ||
"importAttributesKeyword": "with" | ||
} |
1 change: 1 addition & 0 deletions
1
...s/babel-generator/test/fixtures/importAttributesKeyword/assertions-with-to-with/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
1 change: 1 addition & 0 deletions
1
...abel-generator/test/fixtures/importAttributesKeyword/attributes-assert-to-assert/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
4 changes: 4 additions & 0 deletions
4
...-generator/test/fixtures/importAttributesKeyword/attributes-assert-to-assert/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": [["importAttributes", { "deprecatedAssertSyntax": true }]], | ||
"importAttributesKeyword": "assert" | ||
} |
1 change: 1 addition & 0 deletions
1
...bel-generator/test/fixtures/importAttributesKeyword/attributes-assert-to-assert/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
1 change: 1 addition & 0 deletions
1
...bel-generator/test/fixtures/importAttributesKeyword/attributes-assert-to-default/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
5 changes: 5 additions & 0 deletions
5
...generator/test/fixtures/importAttributesKeyword/attributes-assert-to-default/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [["importAttributes", { "deprecatedAssertSyntax": true }]], | ||
"warns": "You are using import attributes, without specifying the desired output syntax.", | ||
"expectedReParseError": true | ||
} |
1 change: 1 addition & 0 deletions
1
...el-generator/test/fixtures/importAttributesKeyword/attributes-assert-to-default/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with type: "json"; |
1 change: 1 addition & 0 deletions
1
...generator/test/fixtures/importAttributesKeyword/attributes-assert-to-with-legacy/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
5 changes: 5 additions & 0 deletions
5
...rator/test/fixtures/importAttributesKeyword/attributes-assert-to-with-legacy/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [["importAttributes", { "deprecatedAssertSyntax": true }]], | ||
"importAttributesKeyword": "with-legacy", | ||
"expectedReParseError": true | ||
} |
1 change: 1 addition & 0 deletions
1
...enerator/test/fixtures/importAttributesKeyword/attributes-assert-to-with-legacy/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with type: "json"; |
1 change: 1 addition & 0 deletions
1
.../babel-generator/test/fixtures/importAttributesKeyword/attributes-assert-to-with/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
4 changes: 4 additions & 0 deletions
4
...el-generator/test/fixtures/importAttributesKeyword/attributes-assert-to-with/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": [["importAttributes", { "deprecatedAssertSyntax": true }]], | ||
"importAttributesKeyword": "with" | ||
} |
1 change: 1 addition & 0 deletions
1
...babel-generator/test/fixtures/importAttributesKeyword/attributes-assert-to-with/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
1 change: 1 addition & 0 deletions
1
.../babel-generator/test/fixtures/importAttributesKeyword/attributes-with-to-assert/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
5 changes: 5 additions & 0 deletions
5
...el-generator/test/fixtures/importAttributesKeyword/attributes-with-to-assert/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": ["importAttributes"], | ||
"importAttributesKeyword": "assert", | ||
"expectedReParseError": true | ||
} |
1 change: 1 addition & 0 deletions
1
...babel-generator/test/fixtures/importAttributesKeyword/attributes-with-to-assert/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
1 change: 1 addition & 0 deletions
1
...babel-generator/test/fixtures/importAttributesKeyword/attributes-with-to-default/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
5 changes: 5 additions & 0 deletions
5
...l-generator/test/fixtures/importAttributesKeyword/attributes-with-to-default/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": ["importAttributes"], | ||
"warns": "You are using import attributes, without specifying the desired output syntax.", | ||
"expectedReParseError": true | ||
} |
1 change: 1 addition & 0 deletions
1
...abel-generator/test/fixtures/importAttributesKeyword/attributes-with-to-default/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with type: "json"; |
1 change: 1 addition & 0 deletions
1
...l-generator/test/fixtures/importAttributesKeyword/attributes-with-to-with-legacy/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
5 changes: 5 additions & 0 deletions
5
...nerator/test/fixtures/importAttributesKeyword/attributes-with-to-with-legacy/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": ["importAttributes"], | ||
"importAttributesKeyword": "with-legacy", | ||
"expectedReParseError": true | ||
} |
1 change: 1 addition & 0 deletions
1
...-generator/test/fixtures/importAttributesKeyword/attributes-with-to-with-legacy/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with type: "json"; |
1 change: 1 addition & 0 deletions
1
...es/babel-generator/test/fixtures/importAttributesKeyword/attributes-with-to-with/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
4 changes: 4 additions & 0 deletions
4
...abel-generator/test/fixtures/importAttributesKeyword/attributes-with-to-with/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["importAttributes"], | ||
"importAttributesKeyword": "with" | ||
} |
1 change: 1 addition & 0 deletions
1
...s/babel-generator/test/fixtures/importAttributesKeyword/attributes-with-to-with/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with { type: "json" }; |
1 change: 1 addition & 0 deletions
1
...nerator/test/fixtures/importAttributesKeyword/legacy-module-attributes-to-assert/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with type: "json"; |
6 changes: 6 additions & 0 deletions
6
...tor/test/fixtures/importAttributesKeyword/legacy-module-attributes-to-assert/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"plugins": [["moduleAttributes", { "version": "may-2020" }]], | ||
"importAttributesKeyword": "assert", | ||
"expectedReParseError": true, | ||
"BABEL_8_BREAKING": false | ||
} |
1 change: 1 addition & 0 deletions
1
...erator/test/fixtures/importAttributesKeyword/legacy-module-attributes-to-assert/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" assert { type: "json" }; |
1 change: 1 addition & 0 deletions
1
...erator/test/fixtures/importAttributesKeyword/legacy-module-attributes-to-default/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "a" with type: "json"; |
Oops, something went wrong.