Open History to see the last commit
1export const VITE_ENVIRONMENT_NAMES = {
2 // 'ssr' is chosen as the name for the server environment to ensure backwards compatibility
3 // with vite plugins that are not compatible with the new vite environment API (e.g. tailwindcss)
4 server: 'ssr',
5 client: 'client',
6} as const
7β
8export type ViteEnvironmentNames =
9 (typeof VITE_ENVIRONMENT_NAMES)[keyof typeof VITE_ENVIRONMENT_NAMES]
10β
11// for client and router:
12// if a user has a custom server/client entry point file, resolve.alias will point to this
13// otherwise it will be aliased to the default entry point in the respective framework plugin
14export const ENTRY_POINTS = {
15 client: 'virtual:tanstack-start-client-entry',
16 server: 'virtual:tanstack-start-server-entry',
17 // the start entry point must always be provided by the user
18 start: '#tanstack-start-entry',
19 router: '#tanstack-router-entry',
20} as const
21β
22export const TRANSFORM_ID_REGEX = [/\.[cm]?[tj]sx?/]