chore(deps): remove deprecated unplugin-vue-router (#1664)
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
"devDependencies": {
|
||||
"@unocss/reset": "^66.6.8",
|
||||
"@vitejs/plugin-vue": "^6.0.6",
|
||||
"unplugin-vue-router": "^0.19.2",
|
||||
"vite": "catalog:",
|
||||
"vite-plugin-vue-devtools": "^8.1.1",
|
||||
"vue-router": "^5.0.4",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { definePage } from 'unplugin-vue-router/runtime'
|
||||
import { definePage } from 'vue-router/experimental'
|
||||
|
||||
import Buttons from '../components/Buttons.vue'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { definePage } from 'unplugin-vue-router/runtime'
|
||||
import { definePage } from 'vue-router/experimental'
|
||||
|
||||
import Buttons from '../components/Buttons.vue'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { definePage } from 'unplugin-vue-router/runtime'
|
||||
import { definePage } from 'vue-router/experimental'
|
||||
|
||||
import Buttons from '../components/Buttons.vue'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { definePage } from 'unplugin-vue-router/runtime'
|
||||
import { definePage } from 'vue-router/experimental'
|
||||
|
||||
import Buttons from '../components/Buttons.vue'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { definePage } from 'unplugin-vue-router/runtime'
|
||||
import { definePage } from 'vue-router/experimental'
|
||||
|
||||
import Buttons from '../components/Buttons.vue'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { definePage } from 'unplugin-vue-router/runtime'
|
||||
import { definePage } from 'vue-router/experimental'
|
||||
|
||||
import Buttons from '../components/Buttons.vue'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { definePage } from 'unplugin-vue-router/runtime'
|
||||
import { definePage } from 'vue-router/experimental'
|
||||
|
||||
import Buttons from '../components/Buttons.vue'
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"types": [
|
||||
"vite/client",
|
||||
"unplugin-vue-router/client"
|
||||
"vite/client"
|
||||
],
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
||||
@@ -2,8 +2,8 @@ import { resolve } from 'node:path'
|
||||
|
||||
import Vue from '@vitejs/plugin-vue'
|
||||
import Unocss from 'unocss/vite'
|
||||
import VueRouter from 'unplugin-vue-router/vite'
|
||||
import VueDevTools from 'vite-plugin-vue-devtools'
|
||||
import VueRouter from 'vue-router/vite'
|
||||
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
@@ -12,7 +12,6 @@ export default defineConfig({
|
||||
outDir: resolve(import.meta.dirname, 'playground', 'dist'),
|
||||
},
|
||||
plugins: [
|
||||
// https://github.com/posva/unplugin-vue-router
|
||||
VueRouter({
|
||||
root: 'playground',
|
||||
extensions: ['.vue', '.md'],
|
||||
|
||||
Reference in New Issue
Block a user