next.js
383ae8ec - docs: document webpack edge DCE rules for node:stream imports

Commit
79 days ago
docs: document webpack edge DCE rules for node:stream imports Webpack requires if/else structure (not throw-then-require) for DCE to eliminate require('node:stream') in edge builds. Also, requires that load new modules into the graph need NEXT_RUNTIME guards, not just __NEXT_USE_NODE_STREAMS.
Author
Committer
Parents
Loading