@rollup/browser 3.28.1 → 4.0.0-13

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.
@@ -100,13 +100,13 @@ interface ModuleOptions {
100
100
  }
101
101
 
102
102
  export interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
103
- ast?: AcornNode;
103
+ ast?: AstNode;
104
104
  code: string;
105
105
  map?: SourceMapInput;
106
106
  }
107
107
 
108
108
  export interface TransformModuleJSON {
109
- ast?: AcornNode;
109
+ ast?: AstNode;
110
110
  code: string;
111
111
  // note if plugins use new this.cache to opt-out auto transform cache
112
112
  customTransformCache: boolean;
@@ -117,7 +117,7 @@ export interface TransformModuleJSON {
117
117
  }
118
118
 
119
119
  export interface ModuleJSON extends TransformModuleJSON, ModuleOptions {
120
- ast: AcornNode;
120
+ ast: AstNode;
121
121
  dependencies: string[];
122
122
  id: string;
123
123
  resolvedIds: ResolvedIdMap;
@@ -172,7 +172,7 @@ export type EmittedFile = EmittedAsset | EmittedChunk | EmittedPrebuiltChunk;
172
172
  export type EmitFile = (emittedFile: EmittedFile) => string;
173
173
 
174
174
  interface ModuleInfo extends ModuleOptions {
175
- ast: AcornNode | null;
175
+ ast: AstNode | null;
176
176
  code: string | null;
177
177
  dynamicImporters: readonly string[];
178
178
  dynamicallyImportedIdResolutions: readonly ResolvedId[];
@@ -220,7 +220,7 @@ export interface PluginContext extends MinimalPluginContext {
220
220
  ) => Promise<ModuleInfo>;
221
221
  /** @deprecated Use `this.getModuleIds` instead */
222
222
  moduleIds: IterableIterator<string>;
223
- parse: (input: string, options?: any) => AcornNode;
223
+ parse: (input: string) => AstNode;
224
224
  resolve: (
225
225
  source: string,
226
226
  importer?: string,
@@ -270,7 +270,7 @@ export type ResolveIdHook = (
270
270
  export type ShouldTransformCachedModuleHook = (
271
271
  this: PluginContext,
272
272
  options: {
273
- ast: AcornNode;
273
+ ast: AstNode;
274
274
  code: string;
275
275
  id: string;
276
276
  meta: CustomPluginOptions;
@@ -322,7 +322,7 @@ export type RenderChunkHook = (
322
322
 
323
323
  export type ResolveDynamicImportHook = (
324
324
  this: PluginContext,
325
- specifier: string | AcornNode,
325
+ specifier: string | AstNode,
326
326
  importer: string,
327
327
  options: { assertions: Record<string, string> }
328
328
  ) => ResolveIdResult;
@@ -565,8 +565,6 @@ export type SourcemapIgnoreListOption = (
565
565
  export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputPluginOption[]>;
566
566
 
567
567
  export interface InputOptions {
568
- acorn?: Record<string, unknown>;
569
- acornInjectPlugins?: ((...arguments_: any[]) => unknown)[] | ((...arguments_: any[]) => unknown);
570
568
  cache?: boolean | RollupCache;
571
569
  context?: string;
572
570
  experimentalCacheExpiry?: number;
@@ -602,8 +600,6 @@ export interface InputOptionsWithPlugins extends InputOptions {
602
600
  }
603
601
 
604
602
  export interface NormalizedInputOptions {
605
- acorn: Record<string, unknown>;
606
- acornInjectPlugins: (() => unknown)[];
607
603
  cache: false | undefined | RollupCache;
608
604
  context: string;
609
605
  experimentalCacheExpiry: number;
@@ -993,7 +989,7 @@ export type RollupWatcher = AwaitingEventEmitter<{
993
989
 
994
990
  export function watch(config: RollupWatchOptions | RollupWatchOptions[]): RollupWatcher;
995
991
 
996
- interface AcornNode {
992
+ interface AstNode {
997
993
  end: number;
998
994
  start: number;
999
995
  type: string;