Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse string export names by default (
moduleStringNames
) (#13195)
* Parse string epxort names by default (`moduleStringNames`) * Remove remaining references
- Loading branch information
1 parent
00a4909
commit 3c7aeb3
Showing
30 changed files
with
6 additions
and
28 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions
5
...names/import-local-is-string/options.json → ...names/import-local-is-string/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,7 +1,4 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": [ | ||
"moduleStringNames" | ||
], | ||
"throws": "A string literal cannot be used as an imported binding.\n- Did you mean `import { \"foo\" as foo }`? (1:9)" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
packages/babel-parser/test/fixtures/es2022/module-string-names/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 @@ | ||
{ | ||
"sourceType": "module" | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
...es/babel-parser/test/fixtures/experimental/_no-plugin/module-string-names-export/input.js
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...abel-parser/test/fixtures/experimental/_no-plugin/module-string-names-export/options.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...es/babel-parser/test/fixtures/experimental/_no-plugin/module-string-names-import/input.js
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...abel-parser/test/fixtures/experimental/_no-plugin/module-string-names-import/options.json
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/babel-parser/test/fixtures/experimental/module-string-names/options.json
This file was deleted.
Oops, something went wrong.
5 changes: 1 addition & 4 deletions
5
...s/babel-parser/test/fixtures/flow/module-string-names/import-local-is-string/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,8 +1,5 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": [ | ||
"moduleStringNames", | ||
"flow" | ||
], | ||
"plugins": ["flow"], | ||
"throws": "A string literal cannot be used as an imported binding.\n- Did you mean `import { \"foo\" as foo }`? (1:9)" | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/flow/module-string-names/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,4 +1,4 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": ["flow", "moduleStringNames"] | ||
"plugins": ["flow"] | ||
} |
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