123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- import type ws from 'ws';
- import type { webpack } from 'next/dist/compiled/webpack/webpack';
- import type { NextConfigComplete } from '../config-shared';
- import { CompilerNameValues, COMPILER_INDEXES } from '../../shared/lib/constants';
- declare const COMPILER_KEYS: CompilerNameValues[];
- export declare const ADDED: unique symbol;
- export declare const BUILDING: unique symbol;
- export declare const BUILT: unique symbol;
- interface EntryType {
-
- dispose?: boolean;
-
- lastActiveTime?: number;
-
- status?: typeof ADDED | typeof BUILDING | typeof BUILT;
-
- bundlePath: string;
-
- request: string;
- }
- export declare const enum EntryTypes {
- ENTRY = 0,
- CHILD_ENTRY = 1
- }
- interface Entry extends EntryType {
- type: EntryTypes.ENTRY;
-
- absolutePagePath: string;
-
- appPaths: string[] | null;
- }
- interface ChildEntry extends EntryType {
- type: EntryTypes.CHILD_ENTRY;
-
- parentEntries: Set<string>;
- }
- export declare const entries: {
-
- [entryName: string]: Entry | ChildEntry;
- };
- export declare const getInvalidator: () => Invalidator;
- declare class Invalidator {
- private multiCompiler;
- private building;
- private rebuildAgain;
- constructor(multiCompiler: webpack.MultiCompiler);
- shouldRebuildAll(): boolean;
- invalidate(compilerKeys?: typeof COMPILER_KEYS): void;
- startBuilding(compilerKey: keyof typeof COMPILER_INDEXES): void;
- doneBuilding(): void;
- }
- export declare function onDemandEntryHandler({ maxInactiveAge, multiCompiler, nextConfig, pagesBufferLength, pagesDir, rootDir, appDir, }: {
- maxInactiveAge: number;
- multiCompiler: webpack.MultiCompiler;
- nextConfig: NextConfigComplete;
- pagesBufferLength: number;
- pagesDir?: string;
- rootDir: string;
- appDir?: string;
- }): {
- ensurePage({ page, clientOnly, appPaths, }: {
- page: string;
- clientOnly: boolean;
- appPaths?: string[] | null | undefined;
- }): Promise<void>;
- onHMR(client: ws): void;
- };
- export {};
|