Skip to content

Commit

Permalink
Support falsy plugins in types
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jun 17, 2021
1 parent dbdda2d commit 7250e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rollup/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ export interface InputOptions {
moduleContext?: ((id: string) => string | null | undefined) | { [id: string]: string };
onwarn?: WarningHandlerWithDefault;
perf?: boolean;
plugins?: Plugin[];
plugins?: (Plugin | null | false | undefined)[];
preserveEntrySignatures?: PreserveEntrySignaturesOption;
/** @deprecated Use the "preserveModules" output option instead. */
preserveModules?: boolean;
Expand Down Expand Up @@ -651,7 +651,7 @@ export interface OutputOptions {
noConflict?: boolean;
outro?: string | (() => string | Promise<string>);
paths?: OptionsPaths;
plugins?: OutputPlugin[];
plugins?: (OutputPlugin | null | false | undefined)[];
preferConst?: boolean;
preserveModules?: boolean;
preserveModulesRoot?: string;
Expand Down

0 comments on commit 7250e8f

Please sign in to comment.