aboutsummaryrefslogtreecommitdiff
path: root/demos/css-stress-test/framework.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'demos/css-stress-test/framework.tsx')
-rw-r--r--demos/css-stress-test/framework.tsx38
1 files changed, 0 insertions, 38 deletions
diff --git a/demos/css-stress-test/framework.tsx b/demos/css-stress-test/framework.tsx
deleted file mode 100644
index 22b1a3109..000000000
--- a/demos/css-stress-test/framework.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import ReactDOMServer from "react-dom/server.browser";
-
-addEventListener("fetch", async (event: FetchEvent) => {
- var route = Wundle.match(event);
- console.log("Route", JSON.stringify(route.query, null, 2));
- const { default: PageComponent } = await import(route.filepath);
- // const router = Wundle.Router.match(event);
- // console.log("Route", router.name);
-
- // const { Base: Page } = await router.import();
-
- const response = new Response(`
- <!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" href="./src/index.css" />
- <link
- rel="stylesheet"
- crossorigin="anonymous"
- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;700&family=Space+Mono:wght@400;700"
- />
- </head>
- <body>
- <link rel="stylesheet" href="./src/index.css" />
- <div id="reactroot">${ReactDOMServer.renderToString(
- <PageComponent />
- )}</div>
-
- <script src="./src/index.tsx" async type="module"></script>
- </body>
-</html>
- `);
-
- event.respondWith(response);
-});
-
-// typescript isolated modules
-export {};