@expo/webpack-config
Version:
A Webpack configuration used to bundle Expo websites with Expo CLI.
13 lines (12 loc) • 384 B
TypeScript
import { Mode } from '../types';
/**
* Resolve the `mode` in a way that accounts for legacy treatment and environment variables.
*
* mode -> production -> development -> process.env.NODE_ENV -> 'development'
* @category env
*/
export default function getMode({ production, development, mode, }: {
production?: boolean;
development?: boolean;
mode?: string;
}): Mode;