From c76d554ebb99076e2fd66b5852a9500b018306be Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 7 Oct 2021 16:29:10 +0800 Subject: [PATCH] fix(vite): fix `entry point not determine` warning (#682) --- packages/vite/src/vite.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/vite.ts b/packages/vite/src/vite.ts index c92be96f3d..ca12a76651 100644 --- a/packages/vite/src/vite.ts +++ b/packages/vite/src/vite.ts @@ -54,7 +54,10 @@ export async function bundle (nuxt: Nuxt) { vue: {}, css: {}, optimizeDeps: { - exclude: [] + exclude: [], + entries: [ + resolve(nuxt.options.appDir, 'entry.ts') + ] }, esbuild: { jsxFactory: 'h',