Skip to content

Commit

Permalink
fix: shared output id error is triggered on same input/output pair (#107
Browse files Browse the repository at this point in the history
)
  • Loading branch information
samrum authored May 1, 2023
1 parent c9c2ebf commit 0c0a822
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ export function addInputScriptsToOptionsInput(
const optionsInputObject = getOptionsInputAsObject(optionsInput);

inputScripts.forEach(([output, input]) => {
if (optionsInputObject[output]) {
input = input.trim();

if (
optionsInputObject[output] &&
optionsInputObject[output].trim() !== input
) {
throw new Error(
`Inputs (${optionsInputObject[output]}) and (${input}) share an output identifier of (${output}). Rename one of the inputs to prevent output resolution issues.`
);
Expand Down

0 comments on commit 0c0a822

Please sign in to comment.