UNPKG

706 BJavaScriptView Raw
1/**
2 * @license
3 * Copyright 2022 Google LLC
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6/**
7 * @fileoverview
8 *
9 * This file exports a boolean const whose value will depend on what environment
10 * the module is being imported from.
11 */
12const NODE_MODE = false;
13/**
14 * A boolean that will be `true` in server environments like Node, and `false`
15 * in browser environments. Note that your server environment or toolchain must
16 * support the `"node"` export condition for this to be `true`.
17 *
18 * This can be used when authoring components to change behavior based on
19 * whether or not the component is executing in an SSR context.
20 */
21export const isServer = NODE_MODE;
22//# sourceMappingURL=is-server.js.map
\No newline at end of file