Skip to content
Permalink
Browse files
fix(lib): respect rollupOptions.input in lib mode (#10116)
  • Loading branch information
lsdsjy committed Sep 19, 2022
1 parent 4c8aa80 commit c948e7d7fc5ad62262b24f89694e2b95a573a16d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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')

0 comments on commit c948e7d

Please sign in to comment.