Skip to content

Commit

Permalink
Merge branch 'main' into unused-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid authored Sep 26, 2024
2 parents 2c7638a + 894594c commit d4678d8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/sixty-news-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/start": patch
---

fix dev overlay being pulled in even when not used
5 changes: 5 additions & 0 deletions .changeset/twelve-carrots-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/start": patch
---

Update env.d.ts
6 changes: 3 additions & 3 deletions packages/start/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ interface ImportMetaEnv extends Record<`VITE_${string}`, any>, SolidStartMetaEnv
}

interface SolidStartMetaEnv {
START_SSR: string;
START_ISLANDS: string;
START_DEV_OVERLAY: string;
START_SSR: boolean;
START_ISLANDS: boolean;
START_DEV_OVERLAY: boolean;
SERVER_BASE_URL: string;
}
4 changes: 2 additions & 2 deletions packages/start/src/shared/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @refresh skip
import { ErrorBoundary as DefaultErrorBoundary, catchError, type ParentProps } from "solid-js";
import { ErrorBoundary as DefaultErrorBoundary, catchError, type ParentProps, lazy } from "solid-js";
import { isServer } from "solid-js/web";
import { HttpStatusCode } from "./HttpStatusCode";
import { DevOverlay } from "./dev-overlay";
const DevOverlay = lazy(() => import("./dev-overlay"));

export const ErrorBoundary =
import.meta.env.DEV && import.meta.env.START_DEV_OVERLAY
Expand Down
2 changes: 1 addition & 1 deletion packages/start/src/shared/dev-overlay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const DevOverlayDialog =
}
: /* #__PURE__ */ clientOnly(() => import("./DevOverlayDialog"));

export function DevOverlay(props: DevOverlayProps): JSX.Element {
export default function DevOverlay(props: DevOverlayProps): JSX.Element {
const [errors, setErrors] = createSignal<unknown[]>([]);

function resetError() {
Expand Down

0 comments on commit d4678d8

Please sign in to comment.