Skip to content

Commit

Permalink
fix(packages/core): allow empty OutputOptions.format (#224)
Browse files Browse the repository at this point in the history
<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->

### Test Plan

<!-- e.g. is there anything you'd like reviewers to focus on? -->

---
  • Loading branch information
hyf0 authored Nov 11, 2023
1 parent b2439b1 commit 0a79036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/options/output-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export interface OutputOptions extends RollupOutputOptions {
function normalizeFormat(
format: OutputOptions['format'],
): BindingOutputOptions['format'] {
if (format === 'esm' || format === 'cjs') {
if (format == null || format === 'esm' || format === 'cjs') {
return format
} else {
return unimplemented(`output.format: ${format}`)
Expand Down

0 comments on commit 0a79036

Please sign in to comment.