Skip to content

Commit

Permalink
Option renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 2, 2023
1 parent 90e627c commit 5d892b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"plugins": ["sourcePhaseImports"],
"parserOpts": { "createImportExpression": true }
"parserOpts": { "createImportExpressions": true }
}
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ export default abstract class ExpressionParser extends LValParser {
this.sawUnambiguousESM = true;
} else if (this.isContextual(tt._source)) {
this.expectPlugin("sourcePhaseImports");
if (!this.options.createImportExpression) {
if (!this.options.createImportExpressions) {
throw this.raise(
Errors.SourcePhaseDynamicImportRequiresImportExpressions,
{ at: this.state.startLoc },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"plugins": ["sourcePhaseImports", "importAttributes"],
"createImportExpression": true
"createImportExpressions": true
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"plugins": ["sourcePhaseImports"],
"createImportExpression": true
"createImportExpressions": true
}

0 comments on commit 5d892b6

Please sign in to comment.