@rollup/browser 4.11.0 → 4.12.1

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
 
@@ -979,13 +979,22 @@ export type RollupWatcher = AwaitingEventEmitter<{
979
979
 
980
980
  export function watch(config: RollupWatchOptions | RollupWatchOptions[]): RollupWatcher;
981
981
 
982
- interface AstNode {
982
+ interface AstNodeLocation {
983
983
  end: number;
984
984
  start: number;
985
- type: string;
986
985
  }
987
986
 
988
- 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>;
989
998
 
990
999
  export function defineConfig(options: RollupOptions): RollupOptions;
991
1000
  export function defineConfig(options: RollupOptions[]): RollupOptions[];