UNPKG

@compiled/react

Version:

A familiar and performant compile time CSS-in-JS library for React.

15 lines 407 B
/** * Returns `true` when caching should be disabled, else `false`. * * Any code within this check will be removed in the output bundles: * * ```js * if (isCacheDisabled()) { * // This code will be removed from the output bundles * } * ``` */ export const isCacheDisabled = () => { return process.env.NODE_ENV === 'test' && process.env.CACHE === 'false'; }; //# sourceMappingURL=cache.js.map