Skip to content

Commit

Permalink
added jsx handling to svelte because 🤪🤪🤪
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexErrant committed Aug 2, 2023
1 parent bd5916e commit 2f031fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions example-plugins/svelte/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
"checkJs": true,
"isolatedModules": true,
"skipLibCheck": true,
// next two lines were added because otherwise we get
// example-plugins/svelte/src/index.ts:18:10 - error TS7031: Binding element 'initialValue' implicitly has an 'any' type.
// It's annoying that a Svelte plugin needs to handle JSX, but I'm out of give-a-damn juice. Chalk it up to monorepo bullshit.
"jsx": "preserve",
"jsxImportSource": "solid-js",
"ignoreDeprecations": "5.0", // https://github.com/sveltejs/kit/issues/8650
// This fixes errors like:
// File 'shared-dom/src/cardHtml.ts' is not under 'rootDir' 'example-plugins/svelte'. 'rootDir' is expected to contain all source files.
Expand Down

0 comments on commit 2f031fd

Please sign in to comment.