fix(vite): fix entry point not determine warning (#682)

This commit is contained in:
Anthony Fu 2021-10-07 16:29:10 +08:00 committed by GitHub
parent 2cf296c5cc
commit c76d554ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,10 @@ export async function bundle (nuxt: Nuxt) {
vue: {}, vue: {},
css: {}, css: {},
optimizeDeps: { optimizeDeps: {
exclude: [] exclude: [],
entries: [
resolve(nuxt.options.appDir, 'entry.ts')
]
}, },
esbuild: { esbuild: {
jsxFactory: 'h', jsxFactory: 'h',