Skip to content

Commit cb01b6a

Browse files
committed
docs: clarify tsconfig
1 parent 8dd3aa1 commit cb01b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Configure inside your `webpack.config.js`:
3333
rules: [
3434
...
3535
// The following two loader entries are only needed if you use Svelte 5+ with TypeScript.
36-
// Also make sure your tsconfig.json includes `"target": "ESNext"` in order to not downlevel syntax
36+
// Also make sure your tsconfig.json includes `"useDefineForClassFields": true` or "target" is at least "ES2022"` in order to not downlevel class syntax
3737
{
3838
test: /\.svelte\.ts$/,
3939
use: [ "svelte-loader", "ts-loader"],

0 commit comments

Comments
 (0)