Skip to content

Commit

Permalink
docs: clarify tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Oct 10, 2024
1 parent 8dd3aa1 commit cb01b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Configure inside your `webpack.config.js`:
rules: [
...
// The following two loader entries are only needed if you use Svelte 5+ with TypeScript.
// Also make sure your tsconfig.json includes `"target": "ESNext"` in order to not downlevel syntax
// Also make sure your tsconfig.json includes `"useDefineForClassFields": true` or "target" is at least "ES2022"` in order to not downlevel class syntax
{
test: /\.svelte\.ts$/,
use: [ "svelte-loader", "ts-loader"],
Expand Down

0 comments on commit cb01b6a

Please sign in to comment.