diff options
author | 2021-08-13 02:01:41 -0700 | |
---|---|---|
committer | 2021-08-13 02:01:41 -0700 | |
commit | f59892f647ceef1c05e40c9cdef4f79d0a530c2f (patch) | |
tree | 6fed07dc02e722de634618a6f2d246f52510d141 /demos/css-stress-test/framework.tsx | |
parent | 86642cbdd528bbf37708dbb30a815c9a68b6aea1 (diff) | |
download | bun-f59892f647ceef1c05e40c9cdef4f79d0a530c2f.tar.gz bun-f59892f647ceef1c05e40c9cdef4f79d0a530c2f.tar.zst bun-f59892f647ceef1c05e40c9cdef4f79d0a530c2f.zip |
late
Former-commit-id: 1d598bb05a3bac62d86063125e1fe2962f0b5cc6
Diffstat (limited to 'demos/css-stress-test/framework.tsx')
-rw-r--r-- | demos/css-stress-test/framework.tsx | 38 |
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 {}; |