UNPKG

848 BTypeScriptView Raw
1import { webpack } from 'next/dist/compiled/webpack/webpack';
2import { CustomRoutes } from '../lib/load-custom-routes.js';
3import { NextConfig } from '../next-server/server/config';
4import { WebpackEntrypoints } from './entries';
5export declare function attachReactRefresh(webpackConfig: webpack.Configuration, targetLoader: webpack.RuleSetUseItem): void;
6export default function getBaseWebpackConfig(dir: string, { buildId, config, dev, isServer, pagesDir, target, reactProductionProfiling, entrypoints, rewrites, isDevFallback, }: {
7 buildId: string;
8 config: NextConfig;
9 dev?: boolean;
10 isServer?: boolean;
11 pagesDir: string;
12 target?: string;
13 reactProductionProfiling?: boolean;
14 entrypoints: WebpackEntrypoints;
15 rewrites: CustomRoutes['rewrites'];
16 isDevFallback?: boolean;
17}): Promise<webpack.Configuration>;