@rollup/browser 4.62.2 → 4.62.3

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.
@@ -62,9 +62,7 @@ export type LogLevel = 'warn' | 'info' | 'debug';
62
62
  export type LogLevelOption = LogLevel | 'silent';
63
63
 
64
64
  export type SourceMapSegment =
65
- | [number]
66
- | [number, number, number, number]
67
- | [number, number, number, number, number];
65
+ [number] | [number, number, number, number] | [number, number, number, number, number];
68
66
 
69
67
  export interface ExistingDecodedSourceMap {
70
68
  file?: string | undefined;
@@ -96,11 +94,11 @@ export type DecodedSourceMapOrMissing =
96
94
  | (ExistingDecodedSourceMap & { missing?: false | undefined });
97
95
 
98
96
  export interface SourceMap {
99
- file: string;
97
+ file?: string | undefined;
100
98
  mappings: string;
101
99
  names: string[];
102
100
  sources: string[];
103
- sourcesContent?: string[] | undefined;
101
+ sourcesContent?: (string | null)[] | undefined;
104
102
  version: number;
105
103
  debugId?: string | undefined;
106
104
  toString(): string;
@@ -613,9 +611,7 @@ export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
613
611
  export type JsxPreset = 'react' | 'react-jsx' | 'preserve' | 'preserve-react';
614
612
 
615
613
  export type NormalizedJsxOptions =
616
- | NormalizedJsxPreserveOptions
617
- | NormalizedJsxClassicOptions
618
- | NormalizedJsxAutomaticOptions;
614
+ NormalizedJsxPreserveOptions | NormalizedJsxClassicOptions | NormalizedJsxAutomaticOptions;
619
615
 
620
616
  interface NormalizedJsxPreserveOptions {
621
617
  factory: string | null;
@@ -1132,12 +1128,7 @@ interface AstNodeLocation {
1132
1128
  }
1133
1129
 
1134
1130
  type OmittedEstreeKeys =
1135
- | 'loc'
1136
- | 'range'
1137
- | 'leadingComments'
1138
- | 'trailingComments'
1139
- | 'innerComments'
1140
- | 'comments';
1131
+ 'loc' | 'range' | 'leadingComments' | 'trailingComments' | 'innerComments' | 'comments';
1141
1132
  type RollupAstNode<T> = Omit<T, OmittedEstreeKeys> & AstNodeLocation;
1142
1133
 
1143
1134
  type ProgramNode = RollupAstNode<estree.Program>;
@@ -1196,15 +1187,7 @@ export interface RollupFsModule {
1196
1187
  }
1197
1188
 
1198
1189
  export type BufferEncoding =
1199
- | 'ascii'
1200
- | 'utf8'
1201
- | 'utf16le'
1202
- | 'ucs2'
1203
- | 'base64'
1204
- | 'base64url'
1205
- | 'latin1'
1206
- | 'binary'
1207
- | 'hex';
1190
+ 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
1208
1191
 
1209
1192
  export interface RollupDirectoryEntry {
1210
1193
  isFile(): boolean;