rsnext/examples/with-web-worker
Henrik Wenz cc7fd2c247
chore: refactor with-web-worker example (#40844)
## Changes

- Updated dependencies
- Migrated to typescript
- Removed `div` in favour of Fragment
- Replaces `var` with `let` since we don't need global hoisting here

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-09-23 14:08:30 -07:00
..
pages chore: refactor with-web-worker example (#40844) 2022-09-23 14:08:30 -07:00
utils chore: refactor with-web-worker example (#40844) 2022-09-23 14:08:30 -07:00
.gitignore Update default gitignore templates (#39051) 2022-07-26 20:08:40 -05:00
package.json chore: refactor with-web-worker example (#40844) 2022-09-23 14:08:30 -07:00
README.md docs(examples): improve DX while copying command to create new project (#38410) 2022-07-26 21:57:48 -05:00
tsconfig.json chore: refactor with-web-worker example (#40844) 2022-09-23 14:08:30 -07:00
worker.ts chore: refactor with-web-worker example (#40844) 2022-09-23 14:08:30 -07:00

WebWorker example

This example shows how to run code in WebWorkers by utilizing webpack 5.

Deploy your own

Deploy the example using Vercel or preview live with StackBlitz

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-web-worker with-web-worker-app
yarn create next-app --example with-web-worker with-web-worker-app
pnpm create next-app --example with-web-worker with-web-worker-app

Deploy it to the cloud with Vercel (Documentation).