/opt/canhelp/node_modules/next/dist/build/webpack/plugins
Edit: /opt/canhelp/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.d.ts (3040B)
import type { CssImports, ClientComponentImports } from '../loaders/next-flight-client-entry-loader';
import { webpack } from 'next/dist/compiled/webpack/webpack';
interface Options {
dev: boolean;
appDir: string;
isEdgeServer: boolean;
encryptionKey: string;
}
type Actions = {
[actionId: string]: {
exportedName?: string;
filename?: string;
workers: {
[name: string]: {
moduleId: string | number;
async: boolean;
};
};
layer: {
[name: string]: string;
};
};
};
type ActionIdNamePair = {
id: string;
exportedName?: string;
filename?: string;
};
export type ActionManifest = {
encryptionKey: string;
node: Actions;
edge: Actions;
};
export interface ModuleInfo {
moduleId: string | number;
async: boolean;
}
export declare class FlightClientEntryPlugin {
dev: boolean;
appDir: string;
projectDir: string;
encryptionKey: string;
isEdgeServer: boolean;
assetPrefix: string;
webpackRuntime: string;
constructor(options: Options);
apply(compiler: webpack.Compiler): void;
createClientEntries(compiler: webpack.Compiler, compilation: webpack.Compilation): Promise
;
collectClientActionsFromDependencies({ compilation, dependencies, }: {
compilation: webpack.Compilation;
dependencies: ReturnType[];
}): Map;
collectComponentInfoFromServerEntryDependency({ entryRequest, compilation, resolvedModule, }: {
entryRequest: string;
compilation: webpack.Compilation;
resolvedModule: any;
}): {
cssImports: CssImports;
clientComponentImports: ClientComponentImports;
actionImports: [string, ActionIdNamePair[]][];
};
injectClientEntryAndSSRModules({ compiler, compilation, entryName, clientImports, bundlePath, absolutePagePath, }: {
compiler: webpack.Compiler;
compilation: webpack.Compilation;
entryName: string;
clientImports: ClientComponentImports;
bundlePath: string;
absolutePagePath?: string;
}): [
shouldInvalidate: boolean,
addSSREntryPromise: Promise,
addRSCEntryPromise: Promise,
ssrDep: ReturnType
];
injectActionEntry({ compiler, compilation, actions, entryName, bundlePath, fromClient, createdActionIds, }: {
compiler: webpack.Compiler;
compilation: webpack.Compilation;
actions: Map;
entryName: string;
bundlePath: string;
createdActionIds: Set;
fromClient?: boolean;
}): Promise;
addEntry(compilation: webpack.Compilation, context: string, dependency: webpack.Dependency, options: webpack.EntryOptions): Promise;
createActionAssets(compilation: webpack.Compilation): Promise;
}
export {};