Skip to content

Commit 26bf15e

Browse files
committed
Update acorn-dynamic-import to v4.
1 parent 325e27b commit 26bf15e

File tree

6 files changed

+3
-100
lines changed

6 files changed

+3
-100
lines changed

build.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ function compile (name, output) { // eslint-disable-line no-unused-vars
1919

2020
compile('acorn-bigint', './lib/bigint/index.js')
2121
compile('acorn-import-meta', './lib/import-meta/index.js')
22-
compile('./lib/dynamic-import/source', './lib/dynamic-import/index.js')

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var xtend = require('xtend')
44
var CJSParser = acorn.Parser
55
.extend(require('./lib/bigint'))
66
var ESModulesParser = CJSParser
7-
.extend(require('./lib/dynamic-import'))
7+
.extend(require('acorn-dynamic-import').default)
88
.extend(require('./lib/import-meta'))
99

1010
function mapOptions (opts) {

lib/dynamic-import/index.js

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

lib/dynamic-import/source.js

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
},
99
"dependencies": {
1010
"acorn": "^6.0.1",
11+
"acorn-dynamic-import": "^4.0.0",
1112
"acorn-walk": "^6.0.1",
1213
"xtend": "^4.0.1"
1314
},

walk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var xtend = require('xtend')
22
var walk = require('acorn-walk')
3-
var dynamicImportKey = require('./lib/dynamic-import').DynamicImportKey
3+
var dynamicImportKey = require('acorn-dynamic-import').DynamicImportKey
44

55
var base = xtend(walk.base)
66
base[dynamicImportKey] = function () {}

0 commit comments

Comments
 (0)