timepiece/node_modules/lit-html/development/is-server.js

22 lines
706 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 = false;
/**
* 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.
*/
export const isServer = NODE_MODE;
//# sourceMappingURL=is-server.js.map