We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60ef15d commit 4287e68Copy full SHA for 4287e68
packages/react-router-dev/vite/plugin.ts
@@ -915,6 +915,12 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
915
};
916
917
918
+ // We use a separate environment for loading the server manifest and inlined
919
+ // CSS during development. This is because "ssrLoadModule" isn't available if
920
+ // the "ssr" environment has been defined by another plugin (e.g.
921
+ // vite-plugin-cloudflare) as a Vite.DevEnvironment rather than a
922
+ // Vite.RunnableDevEnvironment:
923
+ // https://vite.dev/guide/api-environment-frameworks.html#runtime-agnostic-ssr
924
const HELPER_ENVIRONMENT_NAME = "__react_router_helper__";
925
926
const loadModule: LoadModule = (viteDevServer, url) => {
0 commit comments