Skip to content

Commit

Permalink
Merge pull request #93 from smac89/patch-1
Browse files Browse the repository at this point in the history
Fix bug with array iteration
  • Loading branch information
richardtallent authored Mar 3, 2024
2 parents 9ebddd5 + c23d7d4 commit 7e604bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const _useRecommendedBuildConfig = (config: UserConfig) => {
}

if (Array.isArray(config.build.rollupOptions.output)) {
for (const o in config.build.rollupOptions.output) updateOutputOptions(o as OutputOptions)
for (const o of config.build.rollupOptions.output) updateOutputOptions(o as OutputOptions)
} else {
updateOutputOptions(config.build.rollupOptions.output as OutputOptions)
}
Expand Down

0 comments on commit 7e604bd

Please sign in to comment.