fix: disabled topLevelVar#7293
Conversation
this will cause isServer not to be transpiled to `var` and thus rspack can properly DCE
|
View your CI Pipeline Execution ↗ for commit 9608c2c
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview1 package(s) bumped directly, 22 bumped as dependents. 🟩 Patch bumps
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds configuration changes for the router-core package to preserve Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Review rate limit: 4/5 reviews remaining, refill in 12 minutes. Comment |
Bundle Size Benchmarks
Trend sparkline is historical gzip bytes ending with this PR measurement; lower is better. |
Merging this PR will not alter performance
Comparing Footnotes
|
| build: { | ||
| rolldownOptions: { | ||
| output: { | ||
| topLevelVar: false, |
There was a problem hiding this comment.
According to the document here: https://rolldown.rs/reference/OutputOptions.topLevelVar
It is default to ‘false’.
There was a problem hiding this comment.
true for rolldown alone, but vite sets it to true by default: https://github.com/vitejs/vite/blob/7c3a61f42da6445904e93f0e29e9a2a838fa684a/packages/vite/src/node/build.ts#L768
this will cause isServer not to be transpiled to
varand thus rspack can properly DCESummary by CodeRabbit