@rollup/browser 3.28.1 → 3.29.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
|
@@ -164,6 +164,7 @@ export interface EmittedPrebuiltChunk {
|
|
|
164
164
|
exports?: string[];
|
|
165
165
|
fileName: string;
|
|
166
166
|
map?: SourceMap;
|
|
167
|
+
sourcemapFileName?: string;
|
|
167
168
|
type: 'prebuilt-chunk';
|
|
168
169
|
}
|
|
169
170
|
|
|
@@ -369,7 +370,7 @@ export type WatchChangeHook = (
|
|
|
369
370
|
* ```
|
|
370
371
|
*/
|
|
371
372
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
372
|
-
export type PluginImpl<O extends object = object> = (options?: O) => Plugin
|
|
373
|
+
export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>;
|
|
373
374
|
|
|
374
375
|
export interface OutputBundle {
|
|
375
376
|
[fileName: string]: OutputAsset | OutputChunk;
|
|
@@ -497,9 +498,9 @@ export interface OutputPlugin
|
|
|
497
498
|
version?: string;
|
|
498
499
|
}
|
|
499
500
|
|
|
500
|
-
export interface Plugin extends OutputPlugin, Partial<PluginHooks> {
|
|
501
|
+
export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
501
502
|
// for inter-plugin communication
|
|
502
|
-
api?:
|
|
503
|
+
api?: A;
|
|
503
504
|
}
|
|
504
505
|
|
|
505
506
|
type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
|
|
@@ -744,6 +745,7 @@ export interface OutputOptions {
|
|
|
744
745
|
sourcemapBaseUrl?: string;
|
|
745
746
|
sourcemapExcludeSources?: boolean;
|
|
746
747
|
sourcemapFile?: string;
|
|
748
|
+
sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
|
|
747
749
|
sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
|
|
748
750
|
sourcemapPathTransform?: SourcemapPathTransformOption;
|
|
749
751
|
strict?: boolean;
|
|
@@ -799,6 +801,7 @@ export interface NormalizedOutputOptions {
|
|
|
799
801
|
sourcemapBaseUrl: string | undefined;
|
|
800
802
|
sourcemapExcludeSources: boolean;
|
|
801
803
|
sourcemapFile: string | undefined;
|
|
804
|
+
sourcemapFileNames: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
|
|
802
805
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
803
806
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
804
807
|
strict: boolean;
|
|
@@ -862,6 +865,7 @@ export interface RenderedChunk extends PreRenderedChunk {
|
|
|
862
865
|
export interface OutputChunk extends RenderedChunk {
|
|
863
866
|
code: string;
|
|
864
867
|
map: SourceMap | null;
|
|
868
|
+
sourcemapFileName: string | null;
|
|
865
869
|
preliminaryFileName: string;
|
|
866
870
|
}
|
|
867
871
|
|