Skip to content

Commit a2d69b7

Browse files
committed
Use builtin import() parsing from acorn
1 parent 2ebacc9 commit a2d69b7

File tree

5 files changed

+1
-90
lines changed

5 files changed

+1
-90
lines changed

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ var CJSParser = acorn.Parser
66
.extend(require('./lib/class-fields'))
77
.extend(require('./lib/static-class-features'))
88
.extend(require('./lib/numeric-separator'))
9-
.extend(require('./lib/dynamic-import').default)
109
var ESModulesParser = CJSParser
1110
.extend(require('./lib/export-ns-from'))
1211
.extend(require('./lib/import-meta'))

lib/dynamic-import/index.js

Lines changed: 0 additions & 86 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"devDependencies": {
1515
"acorn-bigint": "^0.4.0",
1616
"acorn-class-fields": "^0.3.1",
17-
"acorn-dynamic-import": "^4.0.0",
1817
"acorn-export-ns-from": "^0.1.0",
1918
"acorn-import-meta": "^0.3.0",
2019
"acorn-numeric-separator": "^0.3.0",

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ test('walk supports plugin syntax', function (t) {
143143
)
144144
t.plan(2)
145145
walk.simple(ast, {
146-
Import: function () {
146+
ImportExpression: function () {
147147
t.pass('import()')
148148
},
149149
MetaProperty: function () {

walk.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var xtend = require('xtend')
22
var walk = require('acorn-walk')
33

44
var base = xtend(walk.base)
5-
base.Import = function () {}
65

76
function simple (node, visitors, baseVisitor, state, override) {
87
return walk.simple(node, visitors, baseVisitor || base, state, override)

0 commit comments

Comments
 (0)