@rollup/browser 4.10.0 → 4.12.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.
@@ -1,4 +1,4 @@
1
- import type { Program } from 'estree';
1
+ import type { Node as EstreeNode, Program } from 'estree';
2
2
 
3
3
  export const VERSION: string;
4
4
 
@@ -725,6 +725,7 @@ export interface OutputOptions {
725
725
  plugins?: OutputPluginOption;
726
726
  preserveModules?: boolean;
727
727
  preserveModulesRoot?: string;
728
+ reexportProtoFromExternal?: boolean;
728
729
  sanitizeFileName?: boolean | ((fileName: string) => string);
729
730
  sourcemap?: boolean | 'inline' | 'hidden';
730
731
  sourcemapBaseUrl?: string;
@@ -776,6 +777,7 @@ export interface NormalizedOutputOptions {
776
777
  plugins: OutputPlugin[];
777
778
  preserveModules: boolean;
778
779
  preserveModulesRoot: string | undefined;
780
+ reexportProtoFromExternal: boolean;
779
781
  sanitizeFileName: (fileName: string) => string;
780
782
  sourcemap: boolean | 'inline' | 'hidden';
781
783
  sourcemapBaseUrl: string | undefined;
@@ -977,13 +979,22 @@ export type RollupWatcher = AwaitingEventEmitter<{
977
979
 
978
980
  export function watch(config: RollupWatchOptions | RollupWatchOptions[]): RollupWatcher;
979
981
 
980
- interface AstNode {
982
+ interface AstNodeLocation {
981
983
  end: number;
982
984
  start: number;
983
- type: string;
984
985
  }
985
986
 
986
- type ProgramNode = Program & AstNode;
987
+ type OmittedEstreeKeys =
988
+ | 'loc'
989
+ | 'range'
990
+ | 'leadingComments'
991
+ | 'trailingComments'
992
+ | 'innerComments'
993
+ | 'comments';
994
+ type RollupAstNode<T> = Omit<T, OmittedEstreeKeys> & AstNodeLocation;
995
+
996
+ type ProgramNode = RollupAstNode<Program>;
997
+ export type AstNode = RollupAstNode<EstreeNode>;
987
998
 
988
999
  export function defineConfig(options: RollupOptions): RollupOptions;
989
1000
  export function defineConfig(options: RollupOptions[]): RollupOptions[];