Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
- Loading branch information
1 parent
59d97d9
commit af8e0fa
Showing
71 changed files
with
1,199 additions
and
112 deletions.
There are no files selected for viewing
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
packages/babel-generator/test/fixtures/types/ImportAssertion/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 foo from "foo.json" assert { type: "json" }; |
8 changes: 8 additions & 0 deletions
8
packages/babel-generator/test/fixtures/types/ImportAssertion/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,8 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"importAssertions" | ||
] | ||
], | ||
"sourceType": "module" | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-generator/test/fixtures/types/ImportAssertion/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 foo from "foo.json" assert { type: "json" }; |
1 change: 0 additions & 1 deletion
1
packages/babel-generator/test/fixtures/types/ImportAttribute/input.js
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/babel-generator/test/fixtures/types/ImportAttribute/options.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/babel-generator/test/fixtures/types/ImportAttribute/output.js
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
...ator/test/fixtures/types/Import2/input.js → .../fixtures/types/ModuleAttributes/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 |
---|---|---|
@@ -1 +1,3 @@ | ||
import "foo.json" with type: "json"; | ||
import("foo.json", { with: { type: "json" } },); | ||
|
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...tor/test/fixtures/types/Import2/output.js → ...fixtures/types/ModuleAttributes/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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import "foo.json" with type: "json"; | ||
import("foo.json", { | ||
with: { | ||
type: "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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...in/module-attributes-dynamic/options.json → ...in/import-assertions-dynamic/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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'moduleAttributes' (1:24)", | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'importAssertions' (1:24)", | ||
"sourceType": "module", | ||
"plugins": [] | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-parser/test/fixtures/experimental/_no-plugin/import-assertions/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 foo from "foo.json" assert { type: "json" }; |
5 changes: 5 additions & 0 deletions
5
packages/babel-parser/test/fixtures/experimental/_no-plugin/import-assertions/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 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'importAssertions' (1:27)", | ||
"sourceType": "module", | ||
"plugins": [] | ||
} |
6 changes: 2 additions & 4 deletions
6
packages/babel-parser/test/fixtures/experimental/_no-plugin/module-attributes/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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'moduleAttributes' (1:27)", | ||
"sourceType": "module", | ||
"plugins": [] | ||
} | ||
"throws": "This experimental syntax requires enabling the parser plugin: 'moduleAttributes' (1:27)" | ||
} |
1 change: 1 addition & 0 deletions
1
...er/test/fixtures/experimental/import-assertions/dynamic-import-with-valid-syntax/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("foo.json", { assert: { type: "json" } }) |
Oops, something went wrong.