Files
styled-components/packages
Phil Pluckthun 489c0f2980 Remove stream require switch with __SERVER__ build global
Instead, we can dynamically require "stream" with an expression
that prevents it from being bundled in client-side bundling
processes. This may still fail in some folding scenarios, but
I've personally successfully applied it here before:
3455401e6f/exchanges/persisted-fetch/src/sha256.ts (L33-L40)

This is guaranteed to at least work against Webpack, Rollup, and
other 'primitive' bundlers.
2021-08-09 20:54:42 +01:00
..
2020-09-14 10:34:31 +09:00