File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,14 @@ export const IsolatedDecl: UnpluginInstance<Options | undefined, false> =
3535
3636 const rollup : Partial < Plugin > = {
3737 renderStart ( outputOptions , inputOptions ) {
38- let outBase = ''
39- let input = inputOptions . input
40- input = typeof input === 'string' ? [ input ] : input
41- if ( Array . isArray ( input ) ) {
42- outBase = lowestCommonAncestor ( ...input )
43- }
38+ const { input } = inputOptions
39+ const normalizedInput =
40+ typeof input === 'string'
41+ ? [ input ]
42+ : Array . isArray ( input )
43+ ? input
44+ : Object . values ( input )
45+ const outBase = lowestCommonAncestor ( ...normalizedInput )
4446
4547 if ( typeof outputOptions . entryFileNames !== 'string' ) {
4648 return this . error ( 'entryFileNames must be a string' )
You can’t perform that action at this time.
0 commit comments