Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
31
node_modules/next/dist/shared/lib/turbopack/utils.d.ts
generated
vendored
Normal file
31
node_modules/next/dist/shared/lib/turbopack/utils.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import type { Issue, StyledString, TurbopackResult } from '../../../build/swc/types';
|
||||
import type { EntryKey } from './entry-key';
|
||||
import type { NextConfigComplete } from '../../../server/config-shared';
|
||||
type IssueKey = `${Issue['severity']}-${Issue['filePath']}-${string}-${string}`;
|
||||
export type IssuesMap = Map<IssueKey, Issue>;
|
||||
export type EntryIssuesMap = Map<EntryKey, IssuesMap>;
|
||||
export type TopLevelIssuesMap = IssuesMap;
|
||||
export declare class ModuleBuildError extends Error {
|
||||
name: string;
|
||||
}
|
||||
export declare class TurbopackInternalError extends Error {
|
||||
name: string;
|
||||
__NEXT_ERROR_CODE: string;
|
||||
static createAndRecordTelemetry(cause: Error): TurbopackInternalError;
|
||||
constructor(cause: Error);
|
||||
}
|
||||
/**
|
||||
* Thin stopgap workaround layer to mimic existing wellknown-errors-plugin in webpack's build
|
||||
* to emit certain type of errors into cli.
|
||||
*/
|
||||
export declare function isWellKnownError(issue: Issue): boolean;
|
||||
export declare function getIssueKey(issue: Issue): IssueKey;
|
||||
export declare function getTurbopackJsConfig(dir: string, nextConfig: NextConfigComplete): Promise<{
|
||||
compilerOptions: Record<string, any>;
|
||||
}>;
|
||||
export declare function processIssues(currentEntryIssues: EntryIssuesMap, key: EntryKey, result: TurbopackResult, throwIssue: boolean, logErrors: boolean): void;
|
||||
export declare function formatIssue(issue: Issue): string;
|
||||
export declare function isRelevantWarning(issue: Issue): boolean;
|
||||
export declare function renderStyledStringToErrorAnsi(string: StyledString): string;
|
||||
export declare function isPersistentCachingEnabled(config: NextConfigComplete): boolean;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue