Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-ducks-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/start": minor
---

fix cloudflare
1 change: 1 addition & 0 deletions packages/start/src/config/lazy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const lazy = (): PluginOption => {
// The transformed files either import "lazy" or css files
// Therefore we skip, if the src doesn't have any import
if (src.indexOf("import") === -1) return;
if (id.includes("entry-server")) return;

const plugins: PluginItem[] = [];

Expand Down
2 changes: 1 addition & 1 deletion packages/start/src/server/handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import middleware from "solid-start:middleware";
import { defineHandler, getCookie, H3, type H3Event, redirect, setCookie } from "h3";
import { defineHandler, getCookie, H3, type H3Event, redirect, setCookie } from "h3/generic";
import { join } from "pathe";
import type { JSX } from "solid-js";
import { sharedConfig } from "solid-js";
Expand Down
Loading