From 648e07f1871276184afad2ccc0aaeec65040f4f9 Mon Sep 17 00:00:00 2001 From: Eugene <19798308+AwesomeObserver@users.noreply.github.com> Date: Thu, 20 Sep 2018 15:29:57 +0300 Subject: [PATCH] Update with-mobx example (#5229) Update to new @babel/plugin-proposal-decorators, @babel/plugin-proposal-class-properties plugins version. --- examples/with-mobx/.babelrc | 4 ++-- examples/with-mobx/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/with-mobx/.babelrc b/examples/with-mobx/.babelrc index e1d3c7e0..8414ce52 100644 --- a/examples/with-mobx/.babelrc +++ b/examples/with-mobx/.babelrc @@ -3,7 +3,7 @@ "next/babel" ], "plugins": [ - "transform-decorators-legacy", - "transform-class-properties" + ["@babel/plugin-proposal-decorators", { "legacy": true }], + ["@babel/plugin-proposal-class-properties", { "loose": true }] ] } diff --git a/examples/with-mobx/package.json b/examples/with-mobx/package.json index 89dd33a2..dbf469f1 100644 --- a/examples/with-mobx/package.json +++ b/examples/with-mobx/package.json @@ -15,7 +15,7 @@ }, "license": "ISC", "devDependencies": { - "babel-plugin-transform-class-properties": "^6.24.1", - "babel-plugin-transform-decorators-legacy": "^1.3.4" + "@babel/plugin-proposal-class-properties": "^7.1.0", + "@babel/plugin-proposal-decorators": "^7.1.0", } }