Skip to content

Commit a9ceb7d

Browse files
fix: prevent HMR to throw error about entrypoints (#5317)
1 parent 26d9f17 commit a9ceb7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/start-plugin-core/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export type ViteEnvironmentNames =
1212
// if a user has a custom server/client entry point file, resolve.alias will point to this
1313
// otherwise it will be aliased to the default entry point in the respective framework plugin
1414
export const ENTRY_POINTS = {
15-
client: '__tanstack-start-client-entry__',
16-
server: '__tanstack-start-server-entry__',
15+
client: 'virtual:tanstack-start-client-entry',
16+
server: 'virtual:tanstack-start-server-entry',
1717
// the start entry point must always be provided by the user
1818
start: '#tanstack-start-entry',
1919
router: '#tanstack-router-entry',

0 commit comments

Comments
 (0)