Skip to content

chore: enable Utoo production optimizations#146

Merged
chenjiahan merged 1 commit into
rstackjs:mainfrom
fireairforce:codex/update-utoo-pack-latest
Jun 8, 2026
Merged

chore: enable Utoo production optimizations#146
chenjiahan merged 1 commit into
rstackjs:mainfrom
fireairforce:codex/update-utoo-pack-latest

Conversation

@fireairforce

@fireairforce fireairforce commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • enable Utoo production concatenateModules in the shared benchmark config
  • explicitly enable Utoo production removeUnusedExports and removeUnusedImports
  • keep case-level optimization overrides working by applying these defaults before ...optimization

Validation

  • pnpm --dir cases/react-1k build:utoo
  • CASE=react-1k TOOLS=webpack,utoo pnpm benchmark with PUPPETEER_EXECUTABLE_PATH pointing to local Chrome

@fireairforce fireairforce force-pushed the codex/update-utoo-pack-latest branch from c7738ca to 76a73e9 Compare June 7, 2026 11:22
@fireairforce fireairforce changed the title update Utoo pack to 1.4.12 enable Utoo production optimizations in benchmarks Jun 7, 2026
@fireairforce fireairforce changed the title enable Utoo production optimizations in benchmarks chore: enable Utoo production optimizations Jun 7, 2026
@fireairforce fireairforce marked this pull request as ready for review June 7, 2026 11:24
@coderabbitai

coderabbitai Bot commented Jun 7, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 43256d62-9ac6-43db-8ef9-5ff101f58ec3

📥 Commits

Reviewing files that changed from the base of the PR and between ac1dbbc and 76a73e9.

📒 Files selected for processing (1)
  • shared/utoopack.config.mjs

📝 Walkthrough

Walkthrough

The createUtooConfig function in the build configuration now enables three additional optimization toggles during production builds: concatenateModules, removeUnusedExports, and removeUnusedImports. These flags are controlled by the isProd variable, matching the existing minify behavior and extending production-specific optimization coverage to module concatenation and unused code elimination.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: enable Utoo production optimizations' directly describes the main change: enabling production optimization toggles in the Utoo config.
Description check ✅ Passed The description provides specific details about enabling production optimizations (concatenateModules, removeUnusedExports, removeUnusedImports) and includes validation steps, directly relating to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@chenjiahan chenjiahan merged commit a1431e4 into rstackjs:main Jun 8, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants