Skip to content

Commit

Permalink
add contributor note
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 20, 2024
1 parent 2309953 commit b2f3e36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/svelte.dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ When writing content for the tutorial, you need to be aware of the differences o
### Dependencies

If you look in the site's package.json you'll notice several dependencies that don't appear to be used, such as `@testing-library/svelte`. These are present because they're referenced in the docs, and Twoslash needs to be able to find type definitions in order to typecheck snippets. Installing the dependencies was deemed preferable to faking it with `declare module`, since we're liable to end up with fictional types that way.

### Prerendering

Most of the site is prerendered. Since that involves some fairly expensive work, it can take a while. To build the site _without_ prerendering — for example, because you need to debug an issue that's affecting production builds — set the `PRERENDER` environment variable to `false`:

```bash
PRERENDER=false pnpm build
```

0 comments on commit b2f3e36

Please sign in to comment.