next
Version:
The React Framework
18 lines (17 loc) • 848 B
TypeScript
import { webpack } from 'next/dist/compiled/webpack/webpack';
import { CustomRoutes } from '../lib/load-custom-routes.js';
import { NextConfig } from '../next-server/server/config';
import { WebpackEntrypoints } from './entries';
export declare function attachReactRefresh(webpackConfig: webpack.Configuration, targetLoader: webpack.RuleSetUseItem): void;
export default function getBaseWebpackConfig(dir: string, { buildId, config, dev, isServer, pagesDir, target, reactProductionProfiling, entrypoints, rewrites, isDevFallback, }: {
buildId: string;
config: NextConfig;
dev?: boolean;
isServer?: boolean;
pagesDir: string;
target?: string;
reactProductionProfiling?: boolean;
entrypoints: WebpackEntrypoints;
rewrites: CustomRoutes['rewrites'];
isDevFallback?: boolean;
}): Promise<webpack.Configuration>;