Skip to content

Commit

Permalink
estree-walk → dash-ast
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jun 6, 2018
1 parent af83614 commit f982783
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"browser-pack": "^6.0.2",
"caller-path": "^2.0.0",
"convert-source-map": "^1.5.0",
"dash-ast": "^1.0.0",
"end-of-stream": "^1.4.0",
"estree-is-require": "^1.0.0",
"estree-walk": "^2.2.0",
"flush-write-stream": "^1.0.2",
"labeled-stream-splicer": "^2.0.0",
"object-delete-value": "^1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var deleteValue = require('object-delete-value')
var values = require('object-values')
var isRequire = require('estree-is-require')
var outpipe = require('outpipe')
var walk = require('estree-walk')
var dash = require('dash-ast')
var scan = require('scope-analyzer')
var acorn = require('acorn-node')

Expand All @@ -23,7 +23,7 @@ function mayContainSplitRequire (str) {

function detectSplitRequireCalls (ast, onreference, onrequire) {
scan.crawl(ast)
walk(ast, function (node) {
dash(ast, function (node) {
var binding
if (isRequire(node, 'split-require')) {
if (onrequire) onrequire(node)
Expand Down

0 comments on commit f982783

Please sign in to comment.