Revert "feat: Add experimental vite plugin (#3184)" (#3185)

This reverts commit a1571b76ed.

It broke fresh.deno.dev :S
This commit is contained in:
Marvin Hagemeister
2025-08-04 18:54:04 +02:00
committed by GitHub
parent a1571b76ed
commit 2f76a0a2aa
54 changed files with 742 additions and 2181 deletions
+2 -5
View File
@@ -83,7 +83,7 @@ export function serveMiddleware<T>(
(() => new Response("not found", { status: 404 }));
const config = options.config ?? DEFAULT_CONFIG;
const buildCache = options.buildCache ??
new MockBuildCache<T>([], options.config?.mode ?? "production");
new MockBuildCache<T>([]);
const ctx = new Context<T>(
req,
@@ -149,12 +149,9 @@ export async function withTmpDir(
export class MockBuildCache<State> implements BuildCache<State> {
#files: FsRouteFile<State>[];
root = "";
clientEntry = "";
islandRegistry: ServerIslandRegistry = new Map();
features = { errorOverlay: false };
constructor(files: FsRouteFile<State>[], mode: "development" | "production") {
this.features.errorOverlay = mode === "development";
constructor(files: FsRouteFile<State>[]) {
this.#files = files;
}