From 06f50015dc7497b20af4b7d1b94a8c5f584726e0 Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Sun, 5 Dec 2021 10:30:45 +0000 Subject: [PATCH 1/2] improve to vite build and fix some vue3 issues --- package.json | 26 +- src/Autosuggest.vue | 22 +- src/parts/DefaultSection.js | 10 +- vite.config.js | 21 + yarn.lock | 3405 +++++------------------------------ 5 files changed, 472 insertions(+), 3012 deletions(-) create mode 100644 vite.config.js diff --git a/package.json b/package.json index ad4ed6d..c2c9359 100644 --- a/package.json +++ b/package.json @@ -68,11 +68,12 @@ } }, "peerDependencies": { - "vue": ">= 2.5.0" + "vue": ">= 3.0.0" }, "devDependencies": { "@storybook/addon-actions": "^3.2.16", "@storybook/vue": "3.2.15", + "@vitejs/plugin-vue": "^1.10.1", "@vue/test-utils": "1.0.0-beta.25", "babel-core": "6.26.0", "babel-eslint": "^8.0.2", @@ -98,27 +99,10 @@ "jest-serializer-vue": "^2.0.2", "kcd-scripts": "0.27.1", "prettier": "1.14.3", - "rollup": "^0.56.2", - "rollup-plugin-buble": "^0.19.2", - "rollup-plugin-commonjs": "^8.3.0", - "rollup-plugin-filesize": "^1.0.1", - "rollup-plugin-json": "^2.1.1", - "rollup-plugin-node-resolve": "^3.0.3", - "rollup-plugin-replace": "^2.0.0", - "rollup-plugin-uglify": "^3.0.0", - "rollup-plugin-vue": "3.0.0", - "rollup-watch": "^4.3.1", "sinon": "4.1.2", - "vue": "2.5.18", - "vue-jest": "2.6.0", - "vue-loader": "14.2.2", - "vue-server-renderer": "2.5.18", - "vue-template-compiler": "2.5.18", - "vue-template-es2015-compiler": "1.8.2", - "webpack": "4.28.3", - "webpack-cli": "^3.2.0", - "webpack-dev-server": "3.1.14", - "webpack-merge": "4.2.1" + "vite": "^2.6.14", + "vue": "^3.2.23", + "vue-jest": "2.6.0" }, "jest": { "moduleFileExtensions": [ diff --git a/src/Autosuggest.vue b/src/Autosuggest.vue index 366b745..11555ba 100644 --- a/src/Autosuggest.vue +++ b/src/Autosuggest.vue @@ -1,5 +1,5 @@