mirror of
https://github.com/zhigang1992/styled-components.git
synced 2026-01-12 22:52:39 +08:00
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.