From 3240db19d33f0816e3c52a5042161a94753879d9 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 24 Jan 2021 22:45:05 -0500 Subject: [PATCH] fix: resolve library entry --- packages/vite/src/node/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/build.ts b/packages/vite/src/node/build.ts index 55d2e749fd304e..873cb919c75055 100644 --- a/packages/vite/src/node/build.ts +++ b/packages/vite/src/node/build.ts @@ -289,7 +289,7 @@ async function doBuild( const resolve = (p: string) => path.resolve(config.root, p) const input = libOptions - ? libOptions.entry + ? resolve(libOptions.entry) : options.rollupOptions?.input || resolve('index.html') if (ssr && typeof input === 'string' && input.endsWith('.html')) {