From f44d7c629100e41cd9a147532b889e5770142516 Mon Sep 17 00:00:00 2001 From: Santosh Sahoo Date: Mon, 20 Jul 2020 18:13:44 -0700 Subject: [PATCH] Upgraded to Webpack 4 --- .babelrc | 10 +- package.json | 42 +- src/App.vue | 2 +- src/vendor.js | 2 - webpack.config.js | 20 +- yarn.lock | 6318 ++++++++++++++++++++++++++++++--------------- 6 files changed, 4277 insertions(+), 2117 deletions(-) delete mode 100644 src/vendor.js diff --git a/.babelrc b/.babelrc index e6173dbf..d97323db 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,9 @@ { - "presets": ["vue-app"] -} + "presets": [ + "@babel/preset-env" + ], + "plugins": [ + "@babel/plugin-syntax-dynamic-import", + "@babel/plugin-proposal-optional-chaining" + ] +} \ No newline at end of file diff --git a/package.json b/package.json index c4938b2e..69d3811f 100644 --- a/package.json +++ b/package.json @@ -8,27 +8,33 @@ "build": "rimraf dist && webpack -p --progress --hide-modules" }, "dependencies": { - "element-ui": "^2.3.4", - "vue": "^2.5.16" + "element-ui": "^2.13.2", + "vue": "^2.6.11" }, "engines": { "node": ">=6" }, "devDependencies": { - "autoprefixer": "^6.6.0", - "babel-core": "^6.24.1", - "babel-loader": "^6.4.0", - "babel-preset-vue-app": "^1.2.0", - "css-loader": "^0.27.0", - "file-loader": "^0.10.1", - "html-webpack-plugin": "^2.24.1", - "postcss-loader": "^1.3.3", - "rimraf": "^2.5.4", - "style-loader": "^0.13.2", - "url-loader": "^0.5.8", - "vue-loader": "^13.3.0", - "vue-template-compiler": "^2.5.16", - "webpack": "^2.4.1", - "webpack-dev-server": "^2.4.2" - } + "@babel/core": "^7.10.5", + "@babel/plugin-proposal-optional-chaining": "^7.10.4", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/preset-env": "^7.10.4", + "autoprefixer": "^9.8.5", + "babel-loader": "^8.1.0", + "babel-plugin-transform-runtime": "^6.23.0", + "babel-preset-vue-app": "^2.0.0", + "css-loader": "^3.6.0", + "file-loader": "^6.0.0", + "html-webpack-plugin": "^4.3.0", + "postcss-loader": "^3.0.0", + "rimraf": "^3.0.2", + "style-loader": "^1.2.1", + "url-loader": "^4.1.0", + "vue-loader": "^15.9.3", + "vue-template-compiler": "^2.6.11", + "webpack": "^4.43.0", + "webpack-cli": "^3.3.12", + "webpack-dev-server": "^3.11.0" + }, + "browserslist": "> 0.25%, not dead" } diff --git a/src/App.vue b/src/App.vue index fc16921c..69744f1c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@