@expo/webpack-config
Version:
The default Webpack configuration used to build Expo apps targeting the web.
31 lines (30 loc) • 898 B
TypeScript
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import { ExpoConfig } from '@expo/config';
import { AnyConfiguration, Environment } from '../types';
/**
* @internal
*/
export declare const DEFAULT_REPORTING_OPTIONS: BundleAnalyzerPlugin.Options & {
verbose?: boolean;
path: string;
};
/**
*
* @param param0
* @internal
*/
export declare function throwDeprecatedConfig({ web }: ExpoConfig): void;
/**
*
* @param env
* @internal
*/
export declare function maybeWarnAboutRebuilds(env: Environment): void;
/**
* Generate a bundle analysis and stats.json via the `webpack-bundle-analyzer` plugin.
*
* @param webpackConfig Existing Webpack config to modify.
* @param env Use the `report` prop to enable and configure reporting tools.
* @category addons
*/
export default function withReporting(webpackConfig: AnyConfiguration, env: Environment): AnyConfiguration;