Skip to content

Commit

Permalink
feat: improve macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Sep 8, 2017
1 parent 40a01c1 commit 1bfbfdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"license": "MIT",
"dependencies": {
"babel-core": "^6.26.0",
"babel-macros": "^1.0.0",
"babel-register": "^6.26.0",
"babylon": "^6.18.0",
"require-from-string": "^1.2.1"
},
"devDependencies": {
"ast-pretty-print": "^2.0.0",
"babel-macros": "^0.5.2",
"babel-plugin-tester": "^4.0.0",
"kcd-scripts": "^0.2.3"
"kcd-scripts": "^0.4.0"
},
"eslintConfig": {
"extends": "./node_modules/kcd-scripts/eslint.js"
Expand Down
4 changes: 2 additions & 2 deletions src/macro.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* istanbul ignore next */
// const printAST = require('ast-pretty-print')
const {createMacro} = require('babel-macros')
const getReplacement = require('./get-replacement')

// this implements the babel-macros v0.4.0 API
module.exports = prevalMacros
module.exports = createMacro(prevalMacros)

function prevalMacros({references, state}) {
references.default.forEach(referencePath => {
Expand Down

0 comments on commit 1bfbfdf

Please sign in to comment.