File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { fileURLToPath , URL } from 'url'
2
2
import { defineConfig } from 'vite'
3
3
import { join } from 'node:path'
4
- import Inspect from 'vite-plugin-inspect'
5
4
import Markdown from 'unplugin-vue-markdown/vite'
6
5
// @ts -ignore: the plugin should not be checked in the playground
7
6
import VueRouter from '../src/vite'
8
- import {
9
- getFileBasedRouteName ,
10
- getPascalCaseRouteName ,
11
- VueRouterAutoImports ,
12
- } from '../src'
7
+ import { VueRouterAutoImports } from '../src'
13
8
import Vue from '@vitejs/plugin-vue'
14
9
import AutoImport from 'unplugin-auto-import/vite'
15
10
import VueDevtools from 'vite-plugin-vue-devtools'
@@ -163,6 +158,5 @@ export default defineConfig({
163
158
] ,
164
159
} ) ,
165
160
VueDevtools ( ) ,
166
- Inspect ( ) ,
167
161
] ,
168
162
} )
Original file line number Diff line number Diff line change
1
+ // for highlighting
2
+ const ts = String . raw
3
+
1
4
export function generateDTS ( {
2
5
routesModule,
3
6
routeNamedMap,
@@ -6,7 +9,7 @@ export function generateDTS({
6
9
routesModule : string
7
10
routeNamedMap : string
8
11
} ) {
9
- return `
12
+ return ts `
10
13
/* eslint-disable */
11
14
/* prettier-ignore */
12
15
// @ts-nocheck
You can’t perform that action at this time.
0 commit comments