| @@ -9,12 +9,49 @@ | ||
| 9 | 9 | }, |
| 10 | 10 | "license": "GPL-3.0", |
| 11 | 11 | "dependencies": {}, |
| 12 | 12 | "devDependencies": { |
| 13 | - "grunt": "~1.0.0", | |
| 13 | + "grunt": "~1.3.0", | |
| 14 | 14 | "grunt-contrib-concat": "^1.0.1", |
| 15 | 15 | "grunt-contrib-copy": "^1.0.0", |
| 16 | 16 | "grunt-contrib-cssmin": "^3.0.0", |
| 17 | - "grunt-contrib-uglify": "~4.0.0", | |
| 18 | - "grunt-wp-i18n": "~1.0.3" | |
| 17 | + "grunt-webpack": "^4.0.2", | |
| 18 | + "grunt-wp-i18n": "~1.0.3", | |
| 19 | + "@babel/cli": "^7.10.1", | |
| 20 | + "@babel/core": "^7.10.2", | |
| 21 | + "@babel/plugin-transform-arrow-functions": "^7.10.1", | |
| 22 | + "@babel/preset-env": "^7.12.7", | |
| 23 | + "babel-loader": "^8.2.1", | |
| 24 | + "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", | |
| 25 | + "webpack": "^5.5.0", | |
| 26 | + "webpack-cli": "^4.2.0", | |
| 27 | + "webpack-merge": "^5.4.0" | |
| 28 | + }, | |
| 29 | + "babel": { | |
| 30 | + "plugins": [ | |
| 31 | + "@babel/transform-arrow-functions", | |
| 32 | + "@babel/transform-async-to-generator", | |
| 33 | + "@babel/transform-modules-commonjs", | |
| 34 | + "@babel/plugin-transform-runtime", | |
| 35 | + "@babel/plugin-proposal-class-properties", | |
| 36 | + "@babel/plugin-syntax-class-properties" | |
| 37 | + ] | |
| 38 | + }, | |
| 39 | + "scripts": { | |
| 40 | + "watch": "webpack --mode=development --watch --config webpack.config.js", | |
| 41 | + "build": "webpack --config webpack.config.js", | |
| 42 | + "build-all": "webpack && cross-env NODE_ENV=production webpack -p" | |
| 43 | + }, | |
| 44 | + "browserslist": { | |
| 45 | + "es5": [ | |
| 46 | + "web", | |
| 47 | + "es5" | |
| 48 | + ], | |
| 49 | + "es6": [ | |
| 50 | + "Chrome >= 60", | |
| 51 | + "Safari >= 10.1", | |
| 52 | + "iOS >= 10.3", | |
| 53 | + "Firefox >= 54", | |
| 54 | + "Edge >= 15" | |
| 55 | + ] | |
| 19 | 56 | } |
| 20 | 57 | } |