[parser] enable dynamic import by default (#10843)

* [parser] enable dynamic import by default

* chore: add back babel-core api test
This commit is contained in:
Abdul Ali
2020-01-09 19:28:52 -06:00
committed by Nicolò Ribaudo
parent 7bc22e42f5
commit 5b907e9bb7
45 changed files with 8 additions and 41 deletions

View File

@@ -922,8 +922,6 @@ export default class ExpressionParser extends LValParser {
return this.parseImportMetaProperty(node);
}
this.expectPlugin("dynamicImport", node.start);
if (!this.match(tt.parenL)) {
this.raise(
this.state.lastTokStart,

View File

@@ -1 +0,0 @@
var $ = import("jquery");

View File

@@ -1,4 +0,0 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'dynamicImport' (1:8)",
"plugins": []
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["dynamicImport"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["dynamicImport"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["dynamicImport"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["dynamicImport"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["dynamicImport"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["dynamicImport"]
}

View File

@@ -1,4 +0,0 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'dynamicImport' (1:0)",
"plugins": []
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["dynamicImport"]
}

View File

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

View File

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

View File

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

View File

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