rag-context-optimizer / frontend /node_modules /next /dist /build /webpack /plugins /next-trace-entrypoints-plugin.d.ts
| import type { Span } from '../../../trace'; | |
| import type { NodeFileTraceReasons } from 'next/dist/compiled/@vercel/nft'; | |
| import { type CompilerNameValues } from '../../../shared/lib/constants'; | |
| import { webpack } from 'next/dist/compiled/webpack/webpack'; | |
| import type { NextConfigComplete } from '../../../server/config-shared'; | |
| export declare const TRACE_IGNORES: string[]; | |
| export declare function getFilesMapFromReasons(fileList: Set<string>, reasons: NodeFileTraceReasons, ignoreFn?: (file: string, parent?: string) => Boolean): Map<string, Map<string, { | |
| ignored: boolean; | |
| }>>; | |
| export interface TurbotraceAction { | |
| action: 'print' | 'annotate'; | |
| input: string[]; | |
| contextDirectory: string; | |
| processCwd: string; | |
| showAll?: boolean; | |
| memoryLimit?: number; | |
| } | |
| export interface BuildTraceContext { | |
| entriesTrace?: { | |
| action: TurbotraceAction; | |
| appDir: string; | |
| outputPath: string; | |
| depModArray: string[]; | |
| entryNameMap: Record<string, string>; | |
| absolutePathByEntryName: Record<string, string>; | |
| }; | |
| chunksTrace?: { | |
| action: TurbotraceAction; | |
| outputPath: string; | |
| entryNameFilesMap: Record<string, Array<string>>; | |
| }; | |
| } | |
| export declare class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance { | |
| buildTraceContext: BuildTraceContext; | |
| private rootDir; | |
| private appDir; | |
| private pagesDir; | |
| private appDirEnabled?; | |
| private tracingRoot; | |
| private entryTraces; | |
| private traceIgnores; | |
| private esmExternals?; | |
| private compilerType; | |
| constructor({ rootDir, appDir, pagesDir, compilerType, appDirEnabled, traceIgnores, esmExternals, outputFileTracingRoot, }: { | |
| rootDir: string; | |
| compilerType: CompilerNameValues; | |
| appDir: string | undefined; | |
| pagesDir: string | undefined; | |
| appDirEnabled?: boolean; | |
| traceIgnores?: string[]; | |
| outputFileTracingRoot?: string; | |
| esmExternals?: NextConfigComplete['experimental']['esmExternals']; | |
| }); | |
| createTraceAssets(compilation: webpack.Compilation, span: Span): Promise<void>; | |
| tapfinishModules(compilation: webpack.Compilation, traceEntrypointsPluginSpan: Span, doResolve: (request: string, parent: string, job: import('@vercel/nft/out/node-file-trace').Job, isEsmRequested: boolean) => Promise<string>, readlink: any, stat: any): void; | |
| apply(compiler: webpack.Compiler): void; | |
| } | |