@rollup/browser 4.0.0-24 → 4.0.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.
@@ -201,6 +201,11 @@ type LoggingFunctionWithPosition = (
201
201
  pos?: number | { column: number; line: number }
202
202
  ) => void;
203
203
 
204
+ export type ParseAst = (
205
+ input: string,
206
+ options?: { allowReturnOutsideFunction?: boolean }
207
+ ) => AstNode;
208
+
204
209
  export interface PluginContext extends MinimalPluginContext {
205
210
  addWatchFile: (id: string) => void;
206
211
  cache: PluginCache;
@@ -215,7 +220,7 @@ export interface PluginContext extends MinimalPluginContext {
215
220
  load: (
216
221
  options: { id: string; resolveDependencies?: boolean } & Partial<PartialNull<ModuleOptions>>
217
222
  ) => Promise<ModuleInfo>;
218
- parse: (input: string, options?: { allowReturnOutsideFunction?: boolean }) => AstNode;
223
+ parse: ParseAst;
219
224
  resolve: (
220
225
  source: string,
221
226
  importer?: string,