()
| 11 | * @returns Answer to given question |
| 12 | */ |
| 13 | export function isNodeEnv(): boolean { |
| 14 | // explicitly check for browser bundles as those can be optimized statically |
| 15 | // by terser/rollup. |
| 16 | return ( |
| 17 | !isBrowserBundle() && |
| 18 | Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]' |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Requires a module which is protected against bundler minification. |
no test coverage detected