Skip to content

Commit

Permalink
fix: Revert d5d44a6 to fix regression (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
conartist6 authored Dec 17, 2020
1 parent ccc43ec commit 18d79d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@babel/traverse": "^7.12.9",
"cosmiconfig": "^7.0.0",
"resolve": "^1.19.0"
},
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const p = require('path')
const resolve = require('resolve')
const traverse = require('@babel/traverse').default
// const printAST = require('ast-pretty-print')

const macrosRegex = /[./]macro(\.c?js)?$/
Expand Down Expand Up @@ -232,7 +231,7 @@ function applyMacros({
*
* See: https://github.com/kentcdodds/import-all.macro/issues/7
*/
traverse(state.file.ast, {
state.file.scope.path.traverse({
Identifier() {},
})

Expand Down

0 comments on commit 18d79d3

Please sign in to comment.