Skip to content

Commit 9f34f7c

Browse files
committed
merge main
2 parents 714c042 + a5240cc commit 9f34f7c

File tree

164 files changed

+1774
-1695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1774
-1695
lines changed

.changeset/nice-pianos-punch.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/pkg.pr.new.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,11 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- name: Checkout code
12-
uses: actions/checkout@v4
13-
14-
- name: install corepack
15-
run: npm i -g [email protected]
16-
17-
- run: corepack enable
11+
- uses: actions/checkout@v4
12+
- uses: pnpm/action-setup@v4
1813
- uses: actions/setup-node@v4
1914
with:
20-
node-version: 18.x
15+
node-version: 22.x
2116
cache: pnpm
2217

2318
- name: Install dependencies

documentation/docs/01-introduction/02-getting-started.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Getting started
33
---
44

5-
We recommend using [SvelteKit](../kit), the official application framework from the Svelte team powered by [Vite](https://vite.dev/):
5+
We recommend using [SvelteKit](../kit), which lets you [build almost anything](../kit/project-types). It's the official application framework from the Svelte team and powered by [Vite](https://vite.dev/). Create a new project with:
66

77
```bash
88
npx sv create myapp
@@ -15,7 +15,9 @@ Don't worry if you don't know Svelte yet! You can ignore all the nice features S
1515

1616
## Alternatives to SvelteKit
1717

18-
You can also use Svelte directly with Vite by running `npm create vite@latest` and selecting the `svelte` option. With this, `npm run build` will generate HTML, JS and CSS files inside the `dist` directory using [vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte). In most cases, you will probably need to [choose a routing library](faq#Is-there-a-router) as well.
18+
You can also use Svelte directly with Vite by running `npm create vite@latest` and selecting the `svelte` option. With this, `npm run build` will generate HTML, JS, and CSS files inside the `dist` directory using [vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte). In most cases, you will probably need to [choose a routing library](faq#Is-there-a-router) as well.
19+
20+
>[!NOTE] Vite is often used in standalone mode to build [single page apps (SPAs)](../kit/glossary#SPA), which you can also [build with SvelteKit](../kit/single-page-apps).
1921
2022
There are also plugins for [Rollup](https://github.com/sveltejs/rollup-plugin-svelte), [Webpack](https://github.com/sveltejs/svelte-loader) [and a few others](https://sveltesociety.dev/packages?category=build-plugins), but we recommend Vite.
2123

documentation/docs/01-introduction/04-svelte-js-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: .svelte.js and .svelte.ts files
44

55
Besides `.svelte` files, Svelte also operates on `.svelte.js` and `.svelte.ts` files.
66

7-
These behave like any other `.js` or `.ts` module, except that you can use runes. This is useful for creating reusable reactive logic, or sharing reactive state across your app.
7+
These behave like any other `.js` or `.ts` module, except that you can use runes. This is useful for creating reusable reactive logic, or sharing reactive state across your app (though note that you [cannot export reassigned state]($state#Passing-state-across-modules)).
88

99
> [!LEGACY]
1010
> This is a concept that didn't exist prior to Svelte 5

documentation/docs/01-introduction/xx-props.md

Lines changed: 0 additions & 139 deletions
This file was deleted.

documentation/docs/01-introduction/xx-reactivity-fundamentals.md

Lines changed: 0 additions & 144 deletions
This file was deleted.

0 commit comments

Comments
 (0)