diff --git a/package.json b/package.json index a386b889..751adc33 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,12 @@ "@babel/preset-env": "^7.15.0", "@babel/preset-typescript": "^7.15.0", "babel-loader": "^8.2.2", + "pre-commit": "^1.2.2", "typescript": "^4.3.5", "webpack": "^5.49.0", "webpack-cli": "^4.7.2" - } + }, + "pre-commit": [ + "build" + ] } diff --git a/webpack.config.js b/webpack.config.js index 20b459f1..6970ba53 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -23,10 +23,6 @@ module.exports = { presets: [ '@babel/preset-env', '@babel/preset-typescript' - ], - plugins: [ - '@babel/proposal-class-properties', - '@babel/proposal-object-rest-spread' ] } }