File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function devServer(): Array<PluginOption> {
3030 return ;
3131 }
3232
33- ( globalThis as any ) . USING_SOLID_START_DEV_SERVER = true ;
33+ globalThis . USING_SOLID_START_DEV_SERVER = true ;
3434
3535 removeHtmlMiddlewares ( viteDevServer ) ;
3636
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ declare module "h3" {
1010import type { Rollup } from "vite" ;
1111declare global {
1212 var START_CLIENT_BUNDLE : Rollup . OutputBundle ;
13+ var USING_SOLID_START_DEV_SERVER : boolean | undefined
1314}
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export function createBaseHandler(
120120
121121 // using TransformStream in dev can cause solid-start-dev-server to crash
122122 // when stream is cancelled
123- if ( ( globalThis as any ) . USING_SOLID_START_DEV_SERVER ) return stream
123+ if ( globalThis . USING_SOLID_START_DEV_SERVER ) return stream
124124
125125 // returning stream directly breaks cloudflare workers
126126 const { writable, readable } = new TransformStream ( ) ;
You can’t perform that action at this time.
0 commit comments