feat(nuxi): add jsx option to generated tsconfig (#3449)

This commit is contained in:
Daniel Roe 2022-03-01 18:25:23 +00:00 committed by GitHub
parent b327a9c996
commit 7b6252a444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ export const writeTypes = async (nuxt: Nuxt) => {
const tsConfig: TSConfig = defu(nuxt.options.typescript?.tsConfig, { const tsConfig: TSConfig = defu(nuxt.options.typescript?.tsConfig, {
compilerOptions: { compilerOptions: {
jsx: 'preserve',
target: 'ESNext', target: 'ESNext',
module: 'ESNext', module: 'ESNext',
moduleResolution: 'Node', moduleResolution: 'Node',