fix(schema): pass correct jsx config for esbuild-loader (#27341)

This commit is contained in:
Daniel Roe 2024-05-24 15:28:51 +01:00 committed by GitHub
parent a549b46e90
commit b8fdbedfe1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,7 +157,11 @@ export default defineUntypedSchema({
* See https://github.com/esbuild-kit/esbuild-loader
* @type {Omit<typeof import('esbuild-loader')['LoaderOptions'], 'loader'>}
*/
esbuild: {},
esbuild: {
jsxFactory: 'h',
jsxFragment: 'Fragment',
tsconfigRaw: '{}',
},
/**
* See: https://github.com/webpack-contrib/file-loader#options