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",
"@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",

View file

@ -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'

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
import { ComponentCustomProperties } from 'vue'
import { Store } from 'vuex'

View file

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

View file

@ -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'),

View file

@ -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"