Skip to content

Commit 00c4d8d

Browse files
authored
Update README.md
1 parent 866e9a7 commit 00c4d8d

File tree

1 file changed

+26
-19
lines changed

1 file changed

+26
-19
lines changed

README.md

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,17 @@ For example:
191191

192192
## Svelte HMR tools
193193

194+
### Vite 2
195+
196+
The [official Svelte plugin for Vite][vite-plugin-svelte] has HRM support.
197+
198+
### Webpack
199+
200+
The [official loader for Webpack][svelte-loader] now has HMR support.
201+
194202
### Rollup / Nollup
195203

196-
- [svelte-template-hot] :arrow_left: **Recommended starting point**
204+
- [svelte-template-hot]
197205
- [rollup-plugin-svelte-hot]
198206

199207
#### HMR support for Rollup
@@ -203,12 +211,18 @@ Rollup does not natively support HMR. You'll need to use one of the following so
203211
- [rollup-plugin-hot]
204212
- [Nollup][nollup]
205213

206-
### Webpack
214+
### Svelte Native
215+
216+
The official [Svelte Native template][svelte-native-template]
217+
already includes HMR support.
207218

208-
Documentation & examples for Webpack are currently lagging behind...
219+
### Snowpack
209220

210-
- [svelte-loader-hot]
211-
- [svelte-template-webpack-hot]
221+
Official [Snowpack plugin for Svelte][snowpack/plugin-svelte] has HMR support via `svelte-hmr`. Use [create-snowpack-app] with [app-template-svelte] to get started quickly:
222+
223+
```bash
224+
npx create-snowpack-app new-dir --template @snowpack/app-template-svelte [--use-yarn | --use-pnpm | --no-install]
225+
```
212226

213227
### Sapper
214228

@@ -220,28 +234,21 @@ Some initial work has also been made on supporting Sapper with Rollup, and basic
220234

221235
- [sapper-template-hot#rollup](https://github.com/rixo/sapper-template-hot#rollup)
222236

223-
### Svelte Native
237+
Note that further work on HMR for Sapper is not pursued anymore, by me or anyone I would be aware of.
224238

225-
The official [Svelte Native template](svelte-native-template)
226-
already includes HMR support.
239+
### Vite 1
227240

228-
### Vite
241+
Please note that both Vite 1 itself and the `vite-plugin-svelte` for Vite 1 linked bellow are deprecated / not supported anymore.
229242

230-
- [vite-plugin-svelte]
243+
- [@intrnl/vite-plugin-svelte]
231244
- [svite]
232245

233-
### Snowpack
234-
235-
Official [Snowpack plugin for Svelte](snowpack/plugin-svelte) has HMR support via `svelte-hmr`. Use [create-snowpack-app] with [app-template-svelte] to get started quickly:
236-
237-
```bash
238-
npx create-snowpack-app new-dir --template @snowpack/app-template-svelte [--use-yarn | --use-pnpm | --no-install]
239-
```
240-
241246
## License
242247

243248
[ISC](LICENSE)
244249

250+
[vite-plugin-svelte]: https://www.npmjs.com/package/@sveltejs/vite-plugin-svelte
251+
[svelte-loader]: https://github.com/sveltejs/svelte-loader
245252
[nollup]: https://github.com/PepsRyuu/nollup
246253
[rollup-plugin-hot]: https://github.com/rixo/rollup-plugin-hot
247254
[rollup-plugin-svelte-hot]: https://github.com/rixo/rollup-plugin-svelte-hot
@@ -251,7 +258,7 @@ npx create-snowpack-app new-dir --template @snowpack/app-template-svelte [--use-
251258
[svelte-native-template]: https://github.com/halfnelson/svelte-native-template
252259
[svelte-loader-hot]: https://github.com/rixo/svelte-loader-hot
253260
[svelte-template-webpack-hot]: https://github.com/rixo/svelte-template-webpack-hot
254-
[vite-plugin-svelte]: https://github.com/intrnl/vite-plugin-svelte
261+
[@intrnl/vite-plugin-svelte]: https://github.com/intrnl/vite-plugin-svelte
255262
[svite]: https://github.com/dominikg/svite
256263
[snowpack/plugin-svelte]: https://github.com/snowpackjs/snowpack/tree/master/plugins/plugin-svelte
257264
[create-snowpack-app]: https://github.com/snowpackjs/snowpack/tree/master/create-snowpack-app/cli

0 commit comments

Comments
 (0)