From c5630d3bc5f739208193fa35a4461830f29d1ace Mon Sep 17 00:00:00 2001 From: garnerp Date: Wed, 28 Nov 2018 14:34:46 -0500 Subject: [PATCH] Fix with-babel-macros by upgrading packages (#5762) Added next/babel in .babelrc Upgraded babel-macros to babel-plugin-macros Upgraded preval.macro --- examples/with-babel-macros/.babelrc | 4 ++-- examples/with-babel-macros/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/with-babel-macros/.babelrc b/examples/with-babel-macros/.babelrc index d7d556d1..703a4831 100644 --- a/examples/with-babel-macros/.babelrc +++ b/examples/with-babel-macros/.babelrc @@ -1,4 +1,4 @@ { - "presets": ["react"], - "plugins": ["babel-macros"] + "presets": ["next/babel"], + "plugins": ["babel-plugin-macros"] } diff --git a/examples/with-babel-macros/package.json b/examples/with-babel-macros/package.json index eacad24f..acef83d0 100644 --- a/examples/with-babel-macros/package.json +++ b/examples/with-babel-macros/package.json @@ -15,8 +15,8 @@ "author": "Kent C. Dodds (http://kentcdodds.com/)", "license": "MIT", "devDependencies": { - "babel-macros": "^0.5.1", + "babel-plugin-macros": "^2.4.2", "babel-preset-react": "^6.24.1", - "preval.macro": "^1.0.1" + "preval.macro": "^3.0.0" } }