From 53dc7d12f7cab58e900aba842f99fc4236680b9e Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Fri, 20 May 2022 22:26:09 +0200 Subject: [PATCH] feat: remove vue3 compat mode --- package.json | 1 - src/main.ts | 7 +------ src/types/shims-vue.d.ts | 10 ---------- src/views/tasks/TaskDetailView.vue | 1 - vite.config.ts | 11 ----------- yarn.lock | 5 ----- 6 files changed, 1 insertion(+), 34 deletions(-) diff --git a/package.json b/package.json index 532378e5..39fa7de2 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "@sentry/vue": "6.19.7", "@types/is-touch-device": "1.0.0", "@types/sortablejs": "1.13.0", - "@vue/compat": "3.2.31", "@vueuse/core": "8.5.0", "@vueuse/router": "8.5.0", "blurhash": "1.1.5", diff --git a/src/main.ts b/src/main.ts index 7ccb391d..783fd9ec 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,9 +1,4 @@ -import {createApp, configureCompat} from 'vue' - -// default everything to Vue 3 behavior -configureCompat({ - MODE: 3, -}) +import {createApp} from 'vue' import App from './App.vue' import router from './router' diff --git a/src/types/shims-vue.d.ts b/src/types/shims-vue.d.ts index 0d8a20b5..5c48818b 100644 --- a/src/types/shims-vue.d.ts +++ b/src/types/shims-vue.d.ts @@ -1,13 +1,3 @@ -declare module 'vue' { - import { CompatVue } from 'vue' - const Vue: CompatVue - export default Vue - export * from 'vue' - - const { configureCompat } = Vue - export { configureCompat } -} - // https://next.vuex.vuejs.org/guide/migrating-to-4-0-from-3-x.html#typescript-support import { ComponentCustomProperties } from 'vue' import { Store } from 'vuex' diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index dba01611..9f29dbce 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -467,7 +467,6 @@ function scrollIntoView(el) { export default defineComponent({ name: 'TaskDetailView', - compatConfig: { ATTR_FALSE_VALUE: false }, components: { BaseButton, CreatedUpdated, diff --git a/vite.config.ts b/vite.config.ts index bcf3d7cb..55b45f42 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -43,13 +43,6 @@ export default defineConfig({ }, plugins: [ vue({ - template: { - compilerOptions: { - compatConfig: { - MODE: 3, - }, - }, - }, reactivityTransform: true, }), legacy, @@ -120,10 +113,6 @@ export default defineConfig({ ], resolve: { alias: [ - { - find: 'vue', - replacement: '@vue/compat', - }, { find: '@', replacement: path.resolve(__dirname, 'src'), diff --git a/yarn.lock b/yarn.lock index 95732a67..bae01fd3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2671,11 +2671,6 @@ "@vue/compiler-sfc" "^3.2.31" "@vue/reactivity" "^3.2.31" -"@vue/compat@3.2.31": - version "3.2.31" - resolved "https://registry.yarnpkg.com/@vue/compat/-/compat-3.2.31.tgz#9c8bdf265eeba1777e5edb56cda73581e351a648" - integrity sha512-hhwJk/SRwpT2OADctj+t7QZCRIgh04AcelGpe6gdj0OxA75xpHnPrG+fmG37U3Z6WDrNHZpGvu2eXBzWXM4OVA== - "@vue/compiler-core@3.2.21": version "3.2.21" resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.21.tgz#26566c32b2ad838199d471ef5df620a83846f24e"