Skip to content

Commit 45a1f32

Browse files
committed
Properly get rid of acorn-dynamic-import
1 parent f9f6413 commit 45a1f32

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ var CJSParser = acorn.Parser
55
.extend(require('./lib/bigint'))
66
.extend(require('./lib/class-fields'))
77
.extend(require('./lib/static-class-features'))
8-
.extend(require('acorn-dynamic-import').default)
98
var ESModulesParser = CJSParser
109
.extend(require('./lib/export-ns-from'))
1110
.extend(require('./lib/import-meta'))
1211

1312
function mapOptions (opts) {
1413
if (!opts) opts = {}
1514
return xtend({
16-
ecmaVersion: 2019,
15+
ecmaVersion: 2020,
1716
allowHashBang: true,
1817
allowReturnOutsideFunction: true
1918
}, opts)

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ test('walk supports plugin syntax', function (t) {
136136
)
137137
t.plan(2)
138138
walk.simple(ast, {
139-
Import: function () {
139+
ImportExpression: function () {
140140
t.pass('import()')
141141
},
142142
MetaProperty: function () {

0 commit comments

Comments
 (0)