Skip to content

Commit

Permalink
chore: refactor playground
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Feb 23, 2024
1 parent bc5c378 commit 1d66651
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Generated by unplugin-auto-import
export {}
declare global {
const defineBasicLoader: typeof import('unplugin-vue-router/runtime')['defineBasicLoader']
const defineBasicLoader: typeof import('unplugin-vue-router/data-loaders/basic')['defineBasicLoader']
const defineLoader: (typeof import('unplugin-vue-router/runtime'))['_defineLoader']
const definePage: typeof import('unplugin-vue-router/runtime')['definePage']
const onBeforeRouteLeave: typeof import('vue-router/auto')['onBeforeRouteLeave']
Expand Down
2 changes: 1 addition & 1 deletion playground/src/pages/users/[id].vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { defineColadaLoader } from 'unplugin-vue-router/runtime'
import { defineColadaLoader } from 'unplugin-vue-router/data-loaders/pinia-colada'
export const myExport = 'OUTSIDE SETUP TEST'
const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms))
Expand Down
6 changes: 6 additions & 0 deletions playground/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
"unplugin-vue-router/types": [
"../src/types"
],
"unplugin-vue-router/data-loaders/basic": [
"../src/data-loaders/basic"
],
"unplugin-vue-router/data-loaders/pinia-colada": [
"../src/data-loaders/pinia-colada"
],
},
"types": [
"unplugin-vue-router/client"
Expand Down
2 changes: 1 addition & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default defineConfig({
imports: [
VueRouterAutoImports,
{
'unplugin-vue-router/runtime': ['defineBasicLoader'],
'unplugin-vue-router/data-loaders/basic': ['defineBasicLoader'],
},
],
}),
Expand Down

0 comments on commit 1d66651

Please sign in to comment.