You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
384 B
13 lines
384 B
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;
|