@tanstack/react-start
Version:
Modern and scalable routing for React applications
16 lines (15 loc) • 563 B
text/typescript
/**
* Side-effect-only marker import.
*
* Usage:
* import '@tanstack/react-start/server-only'
*
* When this import appears in a module, the import-protection plugin marks
* that module as server-only. Importing a server-only module from the client
* environment will trigger a violation (error or mock depending on config).
*
* At build time, the plugin intercepts this specifier in `resolveId` and
* replaces it with a virtual empty module — this source file exists only
* so that TypeScript and IDE tooling can resolve the import.
*/
export {}