Skip to content

Commit

Permalink
fix(lib): respect rollupOptions.input in lib mode (#10116)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsdsjy authored Sep 19, 2022
1 parent 4c8aa80 commit c948e7d
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 c948e7d

Please sign in to comment.