diff options
| author | 2022-05-11 18:29:05 -0700 | |
|---|---|---|
| committer | 2022-05-11 18:29:05 -0700 | |
| commit | 3eacfe231468d07aa737f4f2dc5c59ff9b910489 (patch) | |
| tree | 798d5feb85d1b667d4e27c7730302208fe2cc898 | |
| parent | 89c0d9dd56d8b835567444db37d83b6756fea488 (diff) | |
| download | bun-3eacfe231468d07aa737f4f2dc5c59ff9b910489.tar.gz bun-3eacfe231468d07aa737f4f2dc5c59ff9b910489.tar.zst bun-3eacfe231468d07aa737f4f2dc5c59ff9b910489.zip | |
Update README.mdbun-v0.0.82
| -rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -553,11 +553,15 @@ An event handler for turning that into a `<link>` is automatically registered wh //@import url("http://localhost:3000/styles/globals.css"); ``` -Additionally, bun exposes an API for SSR/SSG that returns a flat list of URLs to css files imported. That function is `bun.getImportedStyles()`. +Additionally, bun exposes an API for SSR/SSG that returns a flat list of URLs to css files imported. That function is `Bun.getImportedStyles()`. ```ts +// This specifically is for "framework" in package.json when loaded via `bun dev` +// This API needs to be changed somewhat to work more generally with Bun.js +// Initially, you could only use bun.js through `bun dev` +// and this API was created at that time addEventListener("fetch", async (event: FetchEvent) => { - var route = bun.match(event); + var route = Bun.match(event); const App = await import("pages/_app"); // This returns all .css files that were imported in the line above. |
