Skip to content

Commit 6a80384

Browse files
committed
chore: update svelte app to latest
1 parent be7acee commit 6a80384

File tree

13 files changed

+1098
-704
lines changed

13 files changed

+1098
-704
lines changed

svelte/my-awesome-app/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also pow
1616

1717
- It brings its own routing solution which might not be preferable for some users.
1818
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
19-
`vite dev` and `vite build` wouldn't work in a SvelteKit environment, for example.
2019

2120
This template contains as little as possible to get started with Vite + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
2221

@@ -36,7 +35,7 @@ It is likely that most cases of changing variable types in runtime are likely to
3635

3736
**Why is HMR not preserving my local component state?**
3837

39-
HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/rixo/svelte-hmr#svelte-hmr).
38+
HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/sveltejs/svelte-hmr/tree/master/packages/svelte-hmr#preservation-of-local-state).
4039

4140
If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.
4241

svelte/my-awesome-app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

svelte/my-awesome-app/jsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"compilerOptions": {
3-
"moduleResolution": "Node",
3+
"moduleResolution": "bundler",
44
"target": "ESNext",
55
"module": "ESNext",
66
/**
77
* svelte-preprocess cannot figure out whether you have
88
* a value or a type, so tell TypeScript to enforce using
99
* `import type` instead of `import` for Types.
1010
*/
11-
"importsNotUsedAsValues": "error",
11+
"verbatimModuleSyntax": true,
1212
"isolatedModules": true,
1313
"resolveJsonModule": true,
1414
/**
@@ -18,8 +18,6 @@
1818
"sourceMap": true,
1919
"esModuleInterop": true,
2020
"skipLibCheck": true,
21-
"forceConsistentCasingInFileNames": true,
22-
"baseUrl": ".",
2321
/**
2422
* Typecheck JS in `.svelte` and `.js` files by default.
2523
* Disable this if you'd like to use dynamic types.

0 commit comments

Comments
 (0)