diff --git a/client/package.json b/client/package.json index 8e39c7b0..df21270f 100644 --- a/client/package.json +++ b/client/package.json @@ -86,5 +86,10 @@ "style-loader": "^4.0.0", "webpack": "^5.97.1", "webpack-cli": "^6.0.1" - } + }, + "browserList": [ + "> 1%", + "not dead", + "not ie <= 11" + ] } diff --git a/client/webpack.config.js b/client/webpack.config.js index 31d2b086..2ec3e318 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -28,19 +28,13 @@ module.exports = { loader: 'babel-loader', options: { presets: [ - ['@babel/preset-env', { - targets: { - "chrome": "58", - "edge": "15", - "firefox": "55", - "ios": "10" - } - }], + ['@babel/preset-env'], '@babel/preset-react' ], plugins: [ + ["@babel/plugin-proposal-decorators", { "version": "legacy" }], + ["@babel/plugin-proposal-private-methods", { "loose": true }], ["@babel/plugin-proposal-private-property-in-object", { "loose": true }], - ["@babel/plugin-proposal-decorators", { "legacy": true }], ["@babel/plugin-proposal-class-properties", { "loose": true }], "@babel/plugin-proposal-function-bind" ]