fix(vite, bridge): avoid vite resolving tsconfig.json (#1677)

This commit is contained in:
Anthony Fu 2021-11-04 16:13:29 +08:00 committed by GitHub
parent 673eccb575
commit 85f39858e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -61,7 +61,8 @@ async function bundle (nuxt: Nuxt, builder: any) {
},
esbuild: {
jsxFactory: 'h',
jsxFragment: 'Fragment'
jsxFragment: 'Fragment',
tsconfigRaw: '{}'
},
publicDir: resolve(nuxt.options.srcDir, nuxt.options.dir.static),
clearScreen: false,

View File

@ -63,7 +63,8 @@ export async function bundle (nuxt: Nuxt) {
},
esbuild: {
jsxFactory: 'h',
jsxFragment: 'Fragment'
jsxFragment: 'Fragment',
tsconfigRaw: '{}'
},
clearScreen: false,
build: {

3
test/fixtures/bridge/tsconfig.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json"
}