@compiled/react
Version:
A familiar and performant compile time CSS-in-JS library for React.
14 lines (13 loc) • 336 B
TypeScript
/**
* Returns `true` when inside a node environment,
* else `false`.
*
* When using this it will remove any node code from the browser bundle - for example:
*
* ```js
* if (isServerEnvironment()) {
* // This code will be removed from the browser bundle
* }
* ```
*/
export declare const isServerEnvironment: () => boolean;