@rollup/browser 5.0.0-1 → 5.0.0-2

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.
@@ -54,8 +54,8 @@ export interface ExistingDecodedSourceMap {
54
54
  readonly mappings: SourceMapSegment[][];
55
55
  names: string[];
56
56
  sourceRoot?: string | undefined;
57
- sources: string[];
58
- sourcesContent?: string[] | undefined;
57
+ sources: (string | null)[];
58
+ sourcesContent?: (string | null)[] | undefined;
59
59
  version: number;
60
60
  x_google_ignoreList?: number[] | undefined;
61
61
  }
@@ -65,8 +65,8 @@ export interface ExistingRawSourceMap {
65
65
  mappings: string;
66
66
  names: string[];
67
67
  sourceRoot?: string | undefined;
68
- sources: string[];
69
- sourcesContent?: string[] | undefined;
68
+ sources: (string | null)[];
69
+ sourcesContent?: (string | null)[] | undefined;
70
70
  version: number;
71
71
  x_google_ignoreList?: number[] | undefined;
72
72
  }
@@ -90,7 +90,17 @@ export interface SourceMap {
90
90
  toUrl(): string;
91
91
  }
92
92
 
93
- export type SourceMapInput = ExistingRawSourceMap | string | null | { mappings: '' };
93
+ export type SourceMapInput =
94
+ ExistingRawSourceMap | IndexSourceMap | string | null | { mappings: '' };
95
+
96
+ export interface IndexSourceMap {
97
+ file?: string | undefined;
98
+ sections: {
99
+ map: ExistingRawSourceMap | IndexSourceMap;
100
+ offset: { column: number; line: number };
101
+ }[];
102
+ version: number;
103
+ }
94
104
 
95
105
  export type UniqueModuleId = string | { rawId: string; attributes?: Record<string, string> };
96
106
 
@@ -886,8 +896,6 @@ export interface OutputOptions {
886
896
  experimentalMinChunkSize?: number | undefined;
887
897
  exports?: 'default' | 'named' | 'none' | 'auto' | undefined;
888
898
  extend?: boolean | undefined;
889
- /** @deprecated Use "externalImportAttributes" instead. */
890
- externalImportAssertions?: boolean | undefined;
891
899
  externalImportAttributes?: boolean | undefined;
892
900
  externalLiveBindings?: boolean | undefined;
893
901
  // only required for bundle.write
@@ -899,6 +907,7 @@ export interface OutputOptions {
899
907
  globals?: GlobalsOption | undefined;
900
908
  hashCharacters?: HashCharacters | undefined;
901
909
  hoistTransitiveImports?: boolean | undefined;
910
+ /** @deprecated Only needed for environments that do not support the "with" keyword. */
902
911
  importAttributesKey?: ImportAttributesKey | undefined;
903
912
  indent?: string | boolean | undefined;
904
913
  inlineDynamicImports?: boolean | undefined;
@@ -943,8 +952,6 @@ export interface NormalizedOutputOptions {
943
952
  experimentalMinChunkSize: number;
944
953
  exports: 'default' | 'named' | 'none' | 'auto';
945
954
  extend: boolean;
946
- /** @deprecated Use "externalImportAttributes" instead. */
947
- externalImportAssertions: boolean;
948
955
  externalImportAttributes: boolean;
949
956
  externalLiveBindings: boolean;
950
957
  file: string | undefined;
@@ -955,6 +962,7 @@ export interface NormalizedOutputOptions {
955
962
  globals: GlobalsOption;
956
963
  hashCharacters: HashCharacters;
957
964
  hoistTransitiveImports: boolean;
965
+ /** @deprecated Only needed for environments that do not support the "with" keyword. */
958
966
  importAttributesKey: ImportAttributesKey;
959
967
  indent: true | string;
960
968
  inlineDynamicImports: boolean;
@@ -1103,6 +1111,8 @@ export interface ChokidarOptions {
1103
1111
  stabilityThreshold?: number | undefined;
1104
1112
  }
1105
1113
  | undefined;
1114
+ backend?: 'auto' | 'native' | 'native-recursive' | 'polling' | undefined;
1115
+ /** @deprecated Use "pollingBinaryInterval" instead. */
1106
1116
  binaryInterval?: number | undefined;
1107
1117
  cwd?: string | undefined;
1108
1118
  depth?: number | undefined;
@@ -1110,8 +1120,12 @@ export interface ChokidarOptions {
1110
1120
  ignoreInitial?: boolean | undefined;
1111
1121
  ignorePermissionErrors?: boolean | undefined;
1112
1122
  ignored?: Matcher | Matcher[] | undefined;
1123
+ /** @deprecated Use "pollingInterval" instead. */
1113
1124
  interval?: number | undefined;
1114
1125
  persistent?: boolean | undefined;
1126
+ pollingBinaryInterval?: number | undefined;
1127
+ pollingInterval?: number | undefined;
1128
+ /** @deprecated Use `backend: "polling"` instead. */
1115
1129
  usePolling?: boolean | undefined;
1116
1130
  }
1117
1131