Skip to content

Commit 3240db1

Browse files
committed
fix: resolve library entry
1 parent e2137b7 commit 3240db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ async function doBuild(
289289

290290
const resolve = (p: string) => path.resolve(config.root, p)
291291
const input = libOptions
292-
? libOptions.entry
292+
? resolve(libOptions.entry)
293293
: options.rollupOptions?.input || resolve('index.html')
294294

295295
if (ssr && typeof input === 'string' && input.endsWith('.html')) {

0 commit comments

Comments
 (0)