Skip to content

Commit

Permalink
fix: normalize rollupOptions.input
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Nov 14, 2022
1 parent 11f6ed6 commit fd034ed
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions telefunc/node/vite/plugins/buildConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,12 @@ function normalizeRollupInput(input?: InputOption): Record<string, string> {
if (!input) {
return {}
}
/* So far, it seems like we don't this.
if (typeof input === "string") {
return { [input]: input };
if (typeof input === 'string') {
input = [input]
}
if (Array.isArray(input)) {
return Object.fromEntries(input.map((i) => [i, i]));
return Object.fromEntries(input.map((input) => [input, input]))
}
*/
assert(isObject(input))
return input
}

0 comments on commit fd034ed

Please sign in to comment.