This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/style/node_modules/next/dist/build/webpack-config.d.ts
2025-01-11 09:54:09 +03:00

129 lines
4.6 KiB
TypeScript

import { webpack } from 'next/dist/compiled/webpack/webpack';
import type { CustomRoutes } from 'next/dist/lib/load-custom-routes.js';
import type { CompilerNameValues } from 'next/dist/shared/lib/constants.js';
import type { NextConfigComplete } from 'next/dist/server/config-shared.js';
import type { Span } from 'next/dist/trace/index.js';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info.js';
import { type JsConfig, type ResolvedBaseUrl } from 'next/dist/build/load-jsconfig.js';
export declare const NEXT_PROJECT_ROOT: string;
export declare const NEXT_PROJECT_ROOT_DIST: string;
export declare const babelIncludeRegexes: RegExp[];
export declare function attachReactRefresh(webpackConfig: webpack.Configuration, targetLoader: webpack.RuleSetUseItem): void;
export declare const NODE_RESOLVE_OPTIONS: {
dependencyType: string;
modules: string[];
fallback: boolean;
exportsFields: string[];
importsFields: string[];
conditionNames: string[];
descriptionFiles: string[];
extensions: string[];
enforceExtensions: boolean;
symlinks: boolean;
mainFields: string[];
mainFiles: string[];
roots: never[];
fullySpecified: boolean;
preferRelative: boolean;
preferAbsolute: boolean;
restrictions: never[];
};
export declare const NODE_BASE_RESOLVE_OPTIONS: {
alias: boolean;
dependencyType: string;
modules: string[];
fallback: boolean;
exportsFields: string[];
importsFields: string[];
conditionNames: string[];
descriptionFiles: string[];
extensions: string[];
enforceExtensions: boolean;
symlinks: boolean;
mainFields: string[];
mainFiles: string[];
roots: never[];
fullySpecified: boolean;
preferRelative: boolean;
preferAbsolute: boolean;
restrictions: never[];
};
export declare const NODE_ESM_RESOLVE_OPTIONS: {
alias: boolean;
dependencyType: string;
conditionNames: string[];
fullySpecified: boolean;
modules: string[];
fallback: boolean;
exportsFields: string[];
importsFields: string[];
descriptionFiles: string[];
extensions: string[];
enforceExtensions: boolean;
symlinks: boolean;
mainFields: string[];
mainFiles: string[];
roots: never[];
preferRelative: boolean;
preferAbsolute: boolean;
restrictions: never[];
};
export declare const NODE_BASE_ESM_RESOLVE_OPTIONS: {
alias: boolean;
dependencyType: string;
conditionNames: string[];
fullySpecified: boolean;
modules: string[];
fallback: boolean;
exportsFields: string[];
importsFields: string[];
descriptionFiles: string[];
extensions: string[];
enforceExtensions: boolean;
symlinks: boolean;
mainFields: string[];
mainFiles: string[];
roots: never[];
preferRelative: boolean;
preferAbsolute: boolean;
restrictions: never[];
};
export declare const nextImageLoaderRegex: RegExp;
export declare function loadProjectInfo({ dir, config, dev, }: {
dir: string;
config: NextConfigComplete;
dev: boolean;
}): Promise<{
jsConfig: JsConfig;
resolvedBaseUrl: ResolvedBaseUrl;
supportedBrowsers: string[] | undefined;
}>;
export declare function hasExternalOtelApiPackage(): boolean;
export default function getBaseWebpackConfig(dir: string, { buildId, encryptionKey, config, compilerType, dev, entrypoints, isDevFallback, pagesDir, reactProductionProfiling, rewrites, originalRewrites, originalRedirects, runWebpackSpan, appDir, middlewareMatchers, noMangling, jsConfig, resolvedBaseUrl, supportedBrowsers, clientRouterFilters, fetchCacheKeyPrefix, edgePreviewProps, }: {
buildId: string;
encryptionKey: string;
config: NextConfigComplete;
compilerType: CompilerNameValues;
dev?: boolean;
entrypoints: webpack.EntryObject;
isDevFallback?: boolean;
pagesDir?: string;
reactProductionProfiling?: boolean;
rewrites: CustomRoutes['rewrites'];
originalRewrites: CustomRoutes['rewrites'] | undefined;
originalRedirects: CustomRoutes['redirects'] | undefined;
runWebpackSpan: Span;
appDir?: string;
middlewareMatchers?: MiddlewareMatcher[];
noMangling?: boolean;
jsConfig: any;
resolvedBaseUrl: ResolvedBaseUrl;
supportedBrowsers: string[] | undefined;
edgePreviewProps?: Record<string, string>;
clientRouterFilters?: {
staticFilter: ReturnType<import('next/dist/shared/lib/bloom-filter.js').BloomFilter['export']>;
dynamicFilter: ReturnType<import('next/dist/shared/lib/bloom-filter.js').BloomFilter['export']>;
};
fetchCacheKeyPrefix?: string;
}): Promise<webpack.Configuration>;