@rollup/browser 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rollup.browser.d.ts
CHANGED
|
@@ -492,6 +492,8 @@ export type SourcemapPathTransformOption = (
|
|
|
492
492
|
sourcemapPath: string
|
|
493
493
|
) => string;
|
|
494
494
|
|
|
495
|
+
export type InputPluginOption = Plugin | null | false | undefined | InputPluginOption[];
|
|
496
|
+
|
|
495
497
|
export interface InputOptions {
|
|
496
498
|
acorn?: Record<string, unknown>;
|
|
497
499
|
acornInjectPlugins?: (() => unknown)[] | (() => unknown);
|
|
@@ -511,7 +513,7 @@ export interface InputOptions {
|
|
|
511
513
|
moduleContext?: ((id: string) => string | null | void) | { [id: string]: string };
|
|
512
514
|
onwarn?: WarningHandlerWithDefault;
|
|
513
515
|
perf?: boolean;
|
|
514
|
-
plugins?:
|
|
516
|
+
plugins?: InputPluginOption;
|
|
515
517
|
preserveEntrySignatures?: PreserveEntrySignaturesOption;
|
|
516
518
|
/** @deprecated Use the "preserveModules" output option instead. */
|
|
517
519
|
preserveModules?: boolean;
|
|
@@ -522,6 +524,10 @@ export interface InputOptions {
|
|
|
522
524
|
watch?: WatcherOptions | false;
|
|
523
525
|
}
|
|
524
526
|
|
|
527
|
+
export interface InputOptionsWithPlugins extends InputOptions {
|
|
528
|
+
plugins: Plugin[];
|
|
529
|
+
}
|
|
530
|
+
|
|
525
531
|
export interface NormalizedInputOptions {
|
|
526
532
|
acorn: Record<string, unknown>;
|
|
527
533
|
acornInjectPlugins: (() => unknown)[];
|
|
@@ -610,6 +616,8 @@ export type NormalizedAmdOptions = (
|
|
|
610
616
|
|
|
611
617
|
type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
|
|
612
618
|
|
|
619
|
+
type OutputPluginOption = OutputPlugin | null | false | undefined | OutputPluginOption[];
|
|
620
|
+
|
|
613
621
|
export interface OutputOptions {
|
|
614
622
|
amd?: AmdOptions;
|
|
615
623
|
assetFileNames?: string | ((chunkInfo: PreRenderedAsset) => string);
|
|
@@ -647,7 +655,7 @@ export interface OutputOptions {
|
|
|
647
655
|
noConflict?: boolean;
|
|
648
656
|
outro?: string | AddonFunction;
|
|
649
657
|
paths?: OptionsPaths;
|
|
650
|
-
plugins?:
|
|
658
|
+
plugins?: OutputPluginOption;
|
|
651
659
|
/** @deprecated Use "generatedCode.constBindings" instead. */
|
|
652
660
|
preferConst?: boolean;
|
|
653
661
|
preserveModules?: boolean;
|
|
@@ -800,7 +808,7 @@ export interface RollupOptions extends InputOptions {
|
|
|
800
808
|
output?: OutputOptions | OutputOptions[];
|
|
801
809
|
}
|
|
802
810
|
|
|
803
|
-
export interface MergedRollupOptions extends
|
|
811
|
+
export interface MergedRollupOptions extends InputOptionsWithPlugins {
|
|
804
812
|
output: OutputOptions[];
|
|
805
813
|
}
|
|
806
814
|
|