diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index e2f1191a0d4..9eba7568ebe 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -430,6 +430,10 @@ module.exports = function(webpackEnv) { }, }, ], + [ + require('@babel/plugin-proposal-decorators').default, + { legacy: true }, + ], ], // This is a feature of `babel-loader` for webpack (not Babel itself). // It enables caching results in ./node_modules/.cache/babel-loader/ diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 51ad7a1b52d..cc76a624194 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -1,6 +1,6 @@ { "name": "@tajawalae/react-scripts", - "version": "3.0.2", + "version": "3.0.3", "description": "Configuration and scripts for Create React App.", "repository": { "type": "git",