Skip to content

Commit

Permalink
chore: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Sep 30, 2024
1 parent 19fea0e commit e14a028
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/web-worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import workerUrl from "./worker.ts?worker-env";
const worker = new Worker(workerUrl, { type: "module" });
```

__transform during dev__
__Transform during dev__

```ts
//// transform of /path-to/worker.ts?worker-env
Expand All @@ -37,7 +37,7 @@ const runner = createFetchRunner({ root: "...", environmentName: "worker" });
runner.import("/path-to/worker.ts");
```

__transform during build__
__Transform during build__

This plugin orchestrates a following build steps:

Expand All @@ -51,9 +51,9 @@ This plugin orchestrates a following build steps:
export default "/path-to-emitted-chunk/worker-xxyyzzww.js";
```

## TBD
## TODO

- only esm supports multi worker entries
- only esm can support multi worker entries. what to do with iife?
- optimizeDeps
- hmr
- resolve conditions bug https://github.com/vitejs/vite/issues/18222
Expand Down

0 comments on commit e14a028

Please sign in to comment.