25 lines
721 B
JavaScript
25 lines
721 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
/**
|
|
* @fileoverview
|
|
*
|
|
* This file exports a boolean const whose value will depend on what environment
|
|
* the module is being imported from.
|
|
*/
|
|
const NODE_MODE = true;
|
|
/**
|
|
* A boolean that will be `true` in server environments like Node, and `false`
|
|
* in browser environments. Note that your server environment or toolchain must
|
|
* support the `"node"` export condition for this to be `true`.
|
|
*
|
|
* This can be used when authoring components to change behavior based on
|
|
* whether or not the component is executing in an SSR context.
|
|
*/
|
|
const isServer = NODE_MODE;
|
|
|
|
export { isServer };
|
|
//# sourceMappingURL=is-server.js.map
|