From 9525b6b9a5bd13c5bebc83931ce4f24af9bc2fe0 Mon Sep 17 00:00:00 2001 From: Konrad Stepniak Date: Wed, 18 Aug 2021 20:53:44 +0200 Subject: [PATCH] Bump webpack-dev-server to 4.0.0 and add babel preset --- packages/babel-preset-react-app/create.js | 6 ++++++ packages/react-scripts/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/babel-preset-react-app/create.js b/packages/babel-preset-react-app/create.js index 8902bfd0472..126de46ee5c 100644 --- a/packages/babel-preset-react-app/create.js +++ b/packages/babel-preset-react-app/create.js @@ -164,6 +164,12 @@ module.exports = function (api, opts, env) { loose: true, }, ], + [ + require('@babel/plugin-proposal-private-property-in-object').default, + { + loose: true, + }, + ], // Adds Numeric Separators require('@babel/plugin-proposal-numeric-separator').default, // Polyfills the runtime needed for async/await, generators, and friends diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 879e5c61996..bb392249cbc 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -71,7 +71,7 @@ "source-map-loader": "^1.1.2", "style-loader": "3.0.0", "webpack": "5.41.1", - "webpack-dev-server": "4.0.0-rc.1", + "webpack-dev-server": "4.0.0", "webpack-manifest-plugin": "3.1.1", "workbox-webpack-plugin": "6.1.5" },