diff --git a/examples/with-custom-babel-config/.babelrc b/examples/with-custom-babel-config/.babelrc index cefb715f..9321b9ca 100644 --- a/examples/with-custom-babel-config/.babelrc +++ b/examples/with-custom-babel-config/.babelrc @@ -1,6 +1,8 @@ { "presets": [ - "next/babel", - ["@babel/preset-stage-0", { "decoratorsLegacy": true }] + "next/babel" ], + "plugins": [ + "@babel/plugin-proposal-do-expressions" + ] } diff --git a/examples/with-custom-babel-config/package.json b/examples/with-custom-babel-config/package.json index 305ecf89..461ef075 100644 --- a/examples/with-custom-babel-config/package.json +++ b/examples/with-custom-babel-config/package.json @@ -16,6 +16,6 @@ "author": "", "license": "ISC", "devDependencies": { - "@babel/preset-stage-0": "^7.0.0-beta.46" + "@babel/plugin-proposal-do-expressions": "7.0.0-beta.56" } }