16 lines
524 B
JavaScript
16 lines
524 B
JavaScript
|
/**
|
||
|
* @file Environment / ES module
|
||
|
* @module environment
|
||
|
* @author Surmon <https://github.com/surmon-china>
|
||
|
*/
|
||
|
|
||
|
export const environment = process.env
|
||
|
export const NODE_ENV = environment.NODE_ENV
|
||
|
export const isDevMode = Object.is(NODE_ENV, 'development')
|
||
|
export const isProdMode = Object.is(NODE_ENV, 'production')
|
||
|
|
||
|
export const isStatic = process && process.static
|
||
|
export const isServer = process && process.server
|
||
|
export const isBrowser = process && process.browser
|
||
|
export const isModern = process && process.modern
|