From 8bf75076d1e637f9972463bf52ec57763377029d Mon Sep 17 00:00:00 2001 From: icssoa <2570063477@qq.com> Date: Mon, 29 Mar 2021 09:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + vue.config.js | 3 --- yarn.lock | 12 ++++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 38afde8..b05d59f 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "@vue/cli-plugin-vuex": "~4.5.0", "@vue/cli-service": "~4.5.0", "@vue/compiler-sfc": "^3.0.0", + "@vue/composition-api": "^1.0.0-rc.5", "@vue/eslint-config-prettier": "^6.0.0", "@vue/eslint-config-typescript": "^5.0.2", "eslint": "^6.7.2", diff --git a/vue.config.js b/vue.config.js index f74a085..1cbbd04 100644 --- a/vue.config.js +++ b/vue.config.js @@ -81,9 +81,6 @@ module.exports = { // 移除 preload 插件,避免加载多余的资源 config.plugins.delete("preload-index"); - // 描述文件 - config.resolve.alias.set("types", resolve("./src/types")); - config.optimization.minimizer("terser").tap(args => { // 去掉注释 args[0].terserOptions.output = { diff --git a/yarn.lock b/yarn.lock index 78effd6..b456e00 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1549,6 +1549,13 @@ optionalDependencies: prettier "^1.18.2" +"@vue/composition-api@^1.0.0-rc.5": + version "1.0.0-rc.5" + resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.0.0-rc.5.tgz#9b857743dd2692073b6df90fa2cfb9a75a1bb2f6" + integrity sha512-sFBUDZxwi5YOQqH//VSGenO6WH0JuW94+CWo1eUsGSTRue8POfwD4oeduVqi/c6QcwXg2tJL/m6aOD2t/IR6zg== + dependencies: + tslib "^2.1.0" + "@vue/eslint-config-prettier@^6.0.0": version "6.0.0" resolved "https://registry.yarnpkg.com/@vue/eslint-config-prettier/-/eslint-config-prettier-6.0.0.tgz#ad5912b308f4ae468458e02a2b05db0b9d246700" @@ -9648,6 +9655,11 @@ tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== +tslib@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a" + integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A== + tslint@^5.20.1: version "5.20.1" resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.20.1.tgz#e401e8aeda0152bc44dd07e614034f3f80c67b7d"