feat: remove vue3 compat mode

This commit is contained in:
Dominik Pschenitschni 2022-05-20 22:26:09 +02:00
parent e1e410b50b
commit 53dc7d12f7
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
6 changed files with 1 additions and 34 deletions

View file

@ -24,7 +24,6 @@
"@sentry/vue": "6.19.7", "@sentry/vue": "6.19.7",
"@types/is-touch-device": "1.0.0", "@types/is-touch-device": "1.0.0",
"@types/sortablejs": "1.13.0", "@types/sortablejs": "1.13.0",
"@vue/compat": "3.2.31",
"@vueuse/core": "8.5.0", "@vueuse/core": "8.5.0",
"@vueuse/router": "8.5.0", "@vueuse/router": "8.5.0",
"blurhash": "1.1.5", "blurhash": "1.1.5",

View file

@ -1,9 +1,4 @@
import {createApp, configureCompat} from 'vue' import {createApp} from 'vue'
// default everything to Vue 3 behavior
configureCompat({
MODE: 3,
})
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'

View file

@ -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 // https://next.vuex.vuejs.org/guide/migrating-to-4-0-from-3-x.html#typescript-support
import { ComponentCustomProperties } from 'vue' import { ComponentCustomProperties } from 'vue'
import { Store } from 'vuex' import { Store } from 'vuex'

View file

@ -467,7 +467,6 @@ function scrollIntoView(el) {
export default defineComponent({ export default defineComponent({
name: 'TaskDetailView', name: 'TaskDetailView',
compatConfig: { ATTR_FALSE_VALUE: false },
components: { components: {
BaseButton, BaseButton,
CreatedUpdated, CreatedUpdated,

View file

@ -43,13 +43,6 @@ export default defineConfig({
}, },
plugins: [ plugins: [
vue({ vue({
template: {
compilerOptions: {
compatConfig: {
MODE: 3,
},
},
},
reactivityTransform: true, reactivityTransform: true,
}), }),
legacy, legacy,
@ -120,10 +113,6 @@ export default defineConfig({
], ],
resolve: { resolve: {
alias: [ alias: [
{
find: 'vue',
replacement: '@vue/compat',
},
{ {
find: '@', find: '@',
replacement: path.resolve(__dirname, 'src'), replacement: path.resolve(__dirname, 'src'),

View file

@ -2671,11 +2671,6 @@
"@vue/compiler-sfc" "^3.2.31" "@vue/compiler-sfc" "^3.2.31"
"@vue/reactivity" "^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": "@vue/compiler-core@3.2.21":
version "3.2.21" version "3.2.21"
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.21.tgz#26566c32b2ad838199d471ef5df620a83846f24e" resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.21.tgz#26566c32b2ad838199d471ef5df620a83846f24e"