mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
fix(tsconfigs): Add jsx: 'preserve'
to the base template (#10368)
* fix(tsconfigs): Add `jsx: 'preserve'` to the base template * chore: changeset
This commit is contained in:
parent
b44f830a0e
commit
78bafc5d66
2 changed files with 8 additions and 1 deletions
5
.changeset/slimy-avocados-sniff.md
Normal file
5
.changeset/slimy-avocados-sniff.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Updates the base `tsconfig.json` preset with `jsx: 'preserve'` in order to fix errors when importing Astro files inside `.js` and `.ts` files.
|
|
@ -24,6 +24,8 @@
|
|||
// Skip typechecking libraries and .d.ts files
|
||||
"skipLibCheck": true,
|
||||
// Allow JavaScript files to be imported
|
||||
"allowJs": true
|
||||
"allowJs": true,
|
||||
// Allow JSX files (or files that are internally considered JSX, like Astro files) to be imported inside `.js` and `.ts` files.
|
||||
"jsx": "preserve"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue