Remove @vue/compat
This commit is contained in:
		
							parent
							
								
									4b5c4c8bea
								
							
						
					
					
						commit
						a28e00708b
					
				|  | @ -18,7 +18,6 @@ | ||||||
|     "postinstall": "yarn run fix-fomantic-css" |     "postinstall": "yarn run fix-fomantic-css" | ||||||
|   }, |   }, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "@vue/compat": "3.2.37", |  | ||||||
|     "@vueuse/core": "8.7.5", |     "@vueuse/core": "8.7.5", | ||||||
|     "@vueuse/integrations": "8.7.5", |     "@vueuse/integrations": "8.7.5", | ||||||
|     "axios": "0.27.2", |     "axios": "0.27.2", | ||||||
|  |  | ||||||
|  | @ -248,7 +248,7 @@ import EditList from '~/components/library/EditList.vue' | ||||||
| import EditCard from '~/components/library/EditCard.vue' | import EditCard from '~/components/library/EditCard.vue' | ||||||
| import TagsSelector from '~/components/library/TagsSelector.vue' | import TagsSelector from '~/components/library/TagsSelector.vue' | ||||||
| import useEditConfigs from '~/composables/useEditConfigs' | import useEditConfigs from '~/composables/useEditConfigs' | ||||||
| import { computed } from 'vue/dist/vue' | import { computed } from 'vue' | ||||||
| 
 | 
 | ||||||
| export default { | export default { | ||||||
|   components: { |   components: { | ||||||
|  |  | ||||||
|  | @ -1,35 +1,14 @@ | ||||||
| import router from '~/router' | import router from '~/router' | ||||||
| import store, { key } from '~/store' | import store, { key } from '~/store' | ||||||
| // @ts-expect-error typescript does not know about configureCompat
 | import { createApp, defineAsyncComponent, h } from 'vue' | ||||||
| import { configureCompat, createApp, defineAsyncComponent, h } from 'vue' |  | ||||||
| import useLogger from '~/composables/useLogger' | import useLogger from '~/composables/useLogger' | ||||||
| import useTheme from '~/composables/useTheme' | import useTheme from '~/composables/useTheme' | ||||||
| 
 | 
 | ||||||
| // NOTE: Set the theme as fast as possible
 | // NOTE: Set the theme as fast as possible
 | ||||||
| useTheme() | useTheme() | ||||||
| 
 | 
 | ||||||
| configureCompat({ | // TODO (wvffle): Make sure V_FOR_REF works
 | ||||||
|   RENDER_FUNCTION: false, | //                Search pattern: v-for([^>]|\n)+?[^h]ref
 | ||||||
|   COMPONENT_V_MODEL: false, |  | ||||||
|   // TODO (wvffle): Make sure it works
 |  | ||||||
|   //                Search pattern: v-for([^>]|\n)+?[^h]ref
 |  | ||||||
|   V_FOR_REF: false, |  | ||||||
|   OPTIONS_BEFORE_DESTROY: false, |  | ||||||
|   OPTIONS_DESTROYED: false, |  | ||||||
|   CUSTOM_DIR: false, |  | ||||||
|   INSTANCE_EVENT_HOOKS: false, |  | ||||||
|   INSTANCE_LISTENERS: false, |  | ||||||
|   INSTANCE_EVENT_EMITTER: false, |  | ||||||
|   INSTANCE_CHILDREN: false, |  | ||||||
|   GLOBAL_SET: false, |  | ||||||
|   GLOBAL_DELETE: false, |  | ||||||
|   INSTANCE_SET: false, |  | ||||||
|   INSTANCE_DELETE: false, |  | ||||||
|   COMPILER_V_BIND_SYNC: false, |  | ||||||
|   COMPILER_V_ON_NATIVE: false, |  | ||||||
|   FILTERS: false |  | ||||||
| }) |  | ||||||
| 
 |  | ||||||
| const logger = useLogger() | const logger = useLogger() | ||||||
| logger.info('Loading environment:', import.meta.env.MODE) | logger.info('Loading environment:', import.meta.env.MODE) | ||||||
| logger.debug('Environment variables:', import.meta.env) | logger.debug('Environment variables:', import.meta.env) | ||||||
|  |  | ||||||
|  | @ -55,7 +55,6 @@ export default defineConfig(() => ({ | ||||||
|   server: { port, hmr }, |   server: { port, hmr }, | ||||||
|   resolve: { |   resolve: { | ||||||
|     alias: { |     alias: { | ||||||
|       vue: '@vue/compat', |  | ||||||
|       '~': resolve(__dirname, './src') |       '~': resolve(__dirname, './src') | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|  |  | ||||||
|  | @ -1708,11 +1708,6 @@ | ||||||
|     "@vue/compiler-sfc" "^3.2.37" |     "@vue/compiler-sfc" "^3.2.37" | ||||||
|     "@vue/reactivity" "^3.2.37" |     "@vue/reactivity" "^3.2.37" | ||||||
| 
 | 
 | ||||||
| "@vue/compat@3.2.37": |  | ||||||
|   version "3.2.37" |  | ||||||
|   resolved "https://registry.yarnpkg.com/@vue/compat/-/compat-3.2.37.tgz#bd2062a2be88d06046311d5c058aefb17a1d438a" |  | ||||||
|   integrity sha512-MIYkFAz3Fur1mtZBqrNMYTymlohCQ0ol6vtNb58cqExLSCt63xZaXyiZZYPvS6WaMXfbNBDPXMvU9tO922eFCA== |  | ||||||
| 
 |  | ||||||
| "@vue/compiler-core@3.2.37": | "@vue/compiler-core@3.2.37": | ||||||
|   version "3.2.37" |   version "3.2.37" | ||||||
|   resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.37.tgz#b3c42e04c0e0f2c496ff1784e543fbefe91e215a" |   resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.37.tgz#b3c42e04c0e0f2c496ff1784e543fbefe91e215a" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 wvffle
						wvffle