@expo/webpack-config
Version:
The default Webpack configuration used to build Expo apps targeting the web.
12 lines (11 loc) • 459 B
TypeScript
import { AnyConfiguration } from '../types';
/**
* Inject the required aliases for using React Native web and the extended Expo web ecosystem. Optionally can also safely append aliases to a Webpack config.
*
* @param webpackConfig Existing Webpack config to modify.
* @param alias Extra aliases to inject
* @category addons
*/
export default function withAlias(webpackConfig: AnyConfiguration, alias?: {
[key: string]: string;
}): AnyConfiguration;