diff options
| author | 2021-08-15 22:17:20 -0700 | |
|---|---|---|
| committer | 2021-08-15 22:17:20 -0700 | |
| commit | 23357806183eff94632915239f7b98a4046eb3d7 (patch) | |
| tree | efdd9eae103bd29f2a914eccb1f4c2e0009d3fa1 /demos/css-stress-test/nexty/server.development.tsx | |
| parent | bd11b04c18ef0ab5ba05b043829a729f45e53d5e (diff) | |
| download | bun-23357806183eff94632915239f7b98a4046eb3d7.tar.gz bun-23357806183eff94632915239f7b98a4046eb3d7.tar.zst bun-23357806183eff94632915239f7b98a4046eb3d7.zip | |
rename to bun
Former-commit-id: f982fc85fac3f0120e1851ad4027dd8413216439
Diffstat (limited to 'demos/css-stress-test/nexty/server.development.tsx')
| -rw-r--r-- | demos/css-stress-test/nexty/server.development.tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/demos/css-stress-test/nexty/server.development.tsx b/demos/css-stress-test/nexty/server.development.tsx index 9dfa07168..1f0eaee50 100644 --- a/demos/css-stress-test/nexty/server.development.tsx +++ b/demos/css-stress-test/nexty/server.development.tsx @@ -4,7 +4,7 @@ let buildId = 0; var DocumentNamespacePromise; -DocumentNamespacePromise = import(Wundle.routesDir + "_document"); +DocumentNamespacePromise = import(Bun.routesDir + "_document"); var DocumentLoaded = false; var DocumentNamespace; @@ -21,22 +21,22 @@ addEventListener("fetch", async (event: FetchEvent) => { var appRoute; try { - appRoute = await import(Wundle.routesDir + "_app"); + appRoute = await import(Bun.routesDir + "_app"); } catch (exception) { appRoute = null; } - const appStylesheets = (Wundle.getImportedStyles() as string[]).slice(); - var route = Wundle.match(event); + const appStylesheets = (Bun.getImportedStyles() as string[]).slice(); + var route = Bun.match(event); // This imports the currently matched route. const PageNamespace = await import(route.filePath); // This returns all .css files that were imported in the line above. // It's recursive, so any file that imports a CSS file will be included. - const pageStylesheets = (Wundle.getImportedStyles() as string[]).slice(); + const pageStylesheets = (Bun.getImportedStyles() as string[]).slice(); event.respondWith( - await render({ + render({ route, PageNamespace, appStylesheets, @@ -44,7 +44,7 @@ addEventListener("fetch", async (event: FetchEvent) => { DocumentNamespace, AppNamespace: appRoute, buildId, - routePaths: Wundle.getRouteFiles(), + routePaths: Bun.getRouteFiles(), }) ); buildId++; @@ -53,7 +53,7 @@ addEventListener("fetch", async (event: FetchEvent) => { // typescript isolated modules export {}; -declare var Wundle: any; +declare var Bun: any; function getNextData(request: Request, route) { return { |
