Skip to content

Commit 12f8e90

Browse files
authored
chore: update svelte.dev README (#8894)
* Fix svelte.dev running locally instructions After a clean clone, the `svelte` package needs to have its `/types` directory generated for `pnpm dev` to work * Update note about REPL Firefox supports `import` in workers since version 114; confirmed that the REPL works with `pnpm dev` in Firefox
1 parent 4d71ab7 commit 12f8e90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sites/svelte.dev/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
A local database is only required in dev mode if you want to test reading and writing saved REPLs on it. Without a local database in dev mode, the REPL will be able to load saved REPLs from the production database, but not save them.
44

5-
Note also that in dev mode, the REPL will currently only work in Chrome, [as noted in the Vite documentation](https://vitejs.dev/guide/features.html#web-workers), pending support in Firefox for `import` statements in web workers.
5+
Note also that in dev mode, the REPL requires support for [`import` statements in web workers](https://caniuse.com/mdn-javascript_operators_import_worker_support), [as noted in the Vite documentation](https://vitejs.dev/guide/features.html#web-workers). You may need to update your browser to the latest version.
66

77
If you do want to use a database, set it up on [Supabase](https://supabase.com) with the instructions [here](https://github.com/sveltejs/sites/tree/master/db) and set the corresponding environment variables.
88

9-
Run the site sub-project:
9+
Build the `svelte` package, then run the site sub-project:
1010

1111
```bash
1212
pnpm install
13+
pnpm --dir ../../packages/svelte build
1314
pnpm dev
1415
```
1516

0 commit comments

Comments
 (0)