Skip to content

Commit

Permalink
fix: change virtual module id to prefix with virtual: (#468)
Browse files Browse the repository at this point in the history
Co-authored-by: ハン / Han <16288797+hannoeru@users.noreply.github.com>
  • Loading branch information
callqh and hannoeru committed Mar 21, 2024
1 parent 9bedf18 commit 8298c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const MODULE_IDS = [
'virtual:generated-pages-react',
]

export const MODULE_ID_VIRTUAL = '/@vite-plugin-pages/generated-pages'
export const ROUTE_BLOCK_ID_VIRTUAL = '/@vite-plugin-pages/route-block'
export const MODULE_ID_VIRTUAL = 'virtual:vite-plugin-pages/generated-pages'
export const ROUTE_BLOCK_ID_VIRTUAL = 'virtual:vite-plugin-pages/route-block'
export const ROUTE_IMPORT_NAME = '__pages_import_$1__'

export const routeBlockQueryRE = /\?vue&type=route/
Expand Down

0 comments on commit 8298c3a

Please sign in to comment.