Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect
@compiled/react/runtime/style-cache
better in browser distr…
…ibutions. (#1715) * Protect `@compiled/react/runtime/style-cache` better in browser distributions. Steps to replicate (inside of our internal repo). 1. Add Compiled to an `ssr.test.tsx` with the Atlassian SSR Jest library. 2. Run tests 3. 💥 This is because our bundler for browser dist transform `isServerEnvironment()` with `false` inline, so if something in/correctly pulls `dist/browser/…` all server tests are skipped. See: https://github.com/atlassian-labs/compiled/blob/9a15e7420c436ff959e67004b7c6f46bec08f606/packages/react/tsconfig.browser.json#L9 * Increase byte limit with new protection
- Loading branch information