Skip to content

Commit

Permalink
fix(lib): respect rollupOptions.input in lib mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyonglun committed Sep 14, 2022
1 parent 5d56e42 commit 7908ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ async function doBuild(

const resolve = (p: string) => path.resolve(config.root, p)
const input = libOptions
? resolve(libOptions.entry)
? options.rollupOptions?.input || resolve(libOptions.entry)
: typeof options.ssr === 'string'
? resolve(options.ssr)
: options.rollupOptions?.input || resolve('index.html')
Expand Down

0 comments on commit 7908ba9

Please sign in to comment.