Skip to content

Commit c948e7d

Browse files
authored
fix(lib): respect rollupOptions.input in lib mode (#10116)
1 parent 4c8aa80 commit c948e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ async function doBuild(
373373

374374
const resolve = (p: string) => path.resolve(config.root, p)
375375
const input = libOptions
376-
? resolve(libOptions.entry)
376+
? options.rollupOptions?.input || resolve(libOptions.entry)
377377
: typeof options.ssr === 'string'
378378
? resolve(options.ssr)
379379
: options.rollupOptions?.input || resolve('index.html')

0 commit comments

Comments
 (0)