Files
scrap/node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.d.ts
2024-09-24 03:52:46 +00:00

17 lines
624 B
TypeScript

import type { webpack } from 'next/dist/compiled/webpack/webpack';
/**
* { [client import path]: [exported names] }
*/
export type ClientComponentImports = Record<string, Set<string>>;
export type CssImports = Record<string, string[]>;
export type NextFlightClientEntryLoaderOptions = {
modules: string[] | string;
/** This is transmitted as a string to `getOptions` */
server: boolean | 'true' | 'false';
};
export type FlightClientEntryModuleItem = {
request: string;
ids: string[];
};
export default function transformSource(this: webpack.LoaderContext<NextFlightClientEntryLoaderOptions>): string;