Revert "[turbopack] Enable CJS tree shaking by default (#96779)" - #97018
Merged
Conversation
Contributor
Stats from current PR✅ No significant changes detected📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles
Server Middleware
Build DetailsBuild Manifests
Build Cache
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📎 Tarball URLCommit: cdf5539 |
Contributor
Tests PassedCommit: cdf5539 |
unstubbable
marked this pull request as ready for review
August 10, 2026 10:18
unstubbable
changed the base branch from
revert-95993-sp/turbopack/follow-reexports
to
canary
August 10, 2026 10:28
This reverts commit 27c9680.
unstubbable
force-pushed
the
revert-96779-sp/turbopack/cjs-tree-shaking-default-on
branch
from
August 10, 2026 10:42
abc48c2 to
cdf5539
Compare
unstubbable
changed the base branch from
canary
to
revert-95993-sp/turbopack/follow-reexports
August 10, 2026 10:44
mischnic
approved these changes
Aug 10, 2026
unstubbable
deleted the
revert-96779-sp/turbopack/cjs-tree-shaking-default-on
branch
August 10, 2026 11:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #96779
With this flag enabled, CJS modules written as
var X = module.exports = { … }lose properties that are only read back through the alias.@mixmark-io/domino(Turndown's server DOM),lib/LinkedList.js:validis only referenced via the alias, so it is judged unused and elided, and the elision emits...void <fnExpr>, i.e....undefined, which spreads nothing. Result:TypeError: LinkedList.valid is not a function.Not domino-specific (same corruption in its
NodeUtils.js), and the failure mode is a silent property elision rather than a build error.