Skip to content

Commit

Permalink
[parser] enable dynamic import by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulAli19 committed Dec 9, 2019
1 parent 8a8474c commit 26b890c
Show file tree
Hide file tree
Showing 42 changed files with 4 additions and 35 deletions.
2 changes: 0 additions & 2 deletions packages/babel-parser/src/parser/expression.js
Expand Up @@ -949,8 +949,6 @@ export default class ExpressionParser extends LValParser {
return this.parseImportMetaProperty(node);
}

this.expectPlugin("dynamicImport", node.start);

if (!this.match(tt.parenL)) {
this.unexpected(null, tt.parenL);
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,4 +1,4 @@
{
"plugins": ["dynamicImport", "importMeta"],
"plugins": ["importMeta"],
"sourceType": "script"
}
@@ -1,4 +1,4 @@
{
"sourceType": "module",
"plugins": ["dynamicImport", "importMeta"]
"plugins": ["importMeta"]
}
@@ -1,4 +1,4 @@
{
"sourceType": "module",
"plugins": ["dynamicImport", "importMeta"]
"plugins": ["importMeta"]
}
@@ -1,4 +1,4 @@
{
"sourceType": "module",
"plugins": ["dynamicImport", "importMeta"]
"plugins": ["importMeta"]
}

0 comments on commit 26b890c

Please sign in to comment.