WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 26, 2025

  • Create shared rolldown config utility in scripts directory that changes behavior based on env vars
  • Update lodash-es-basic/rolldown.config.mjs to use shared config
  • Update react-fluent-hydration/rolldown.config.mjs to use shared config
  • Add build:rolldown:oxc (default + output.minify:true with oxc minifier)
  • Add build:rolldown:swc (default + swc plugin minifier)
  • Add build:rolldown:strictExecutionOrder (default + strictExecutionOrder:true + output.minify:true)
  • Add build:rolldown:onDemandWrapping (default + strictExecutionOrder:true + onDemandWrapping:true + output.minify:true)
  • Update package.json scripts for each app to include all 4 rolldown variants
  • Update scripts/index.mjs to measure output from all 4 rolldown variant dist directories
  • Add gzip size metrics for all bundlers
  • Rename rolldown-oxc-dist to rolldown-dist (default variant)
  • Add swc version to version map
  • Test the build to ensure all variants work correctly
  • Address PR feedback
Original prompt

Improve scripts/index.mjs to run the rolldown build with the following options as well.

  1. default config + output.minify: true (oxc minifier)
  2. default config + swc plugin (swc minifier)
  3. default config + experimental.strictExecutionOrder: true + output.minify: true (oxc minifier)
  4. default config + experimental.strictExecutionOrder: true + experimental: ondemandWrapping: true + output.minify: true (oxc minifier)

So there will be 4 cases for rolldown. The rolldown config should live in each app directory. add a shared config that changes the behavior based on env vars and use that in rolldown config of each app directory. add each build command to package.json as build:rolldown:variantName and make that called by the top level pnpm build script.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add rolldown build variants with new options Add 4 rolldown build variants with shared env-based config Nov 26, 2025
Copilot finished work on behalf of sapphi-red November 26, 2025 12:10
Copilot AI requested a review from sapphi-red November 26, 2025 12:10
Copilot AI requested a review from sapphi-red November 26, 2025 12:19
Copilot finished work on behalf of sapphi-red November 26, 2025 12:19
Copilot AI requested a review from sapphi-red November 26, 2025 12:37
Copilot finished work on behalf of sapphi-red November 26, 2025 12:37
Copilot AI requested a review from sapphi-red November 26, 2025 12:45
Copilot finished work on behalf of sapphi-red November 26, 2025 12:45
@sapphi-red sapphi-red changed the title Add 4 rolldown build variants with shared env-based config feat: add 3 rolldown build variants and gzip variants Nov 26, 2025
@sapphi-red sapphi-red changed the title feat: add 3 rolldown build variants and gzip variants feat: add 3 rolldown variants and gzip variants Nov 26, 2025
@sapphi-red sapphi-red marked this pull request as ready for review November 26, 2025 14:12
@sapphi-red sapphi-red merged commit 2d4f094 into main Nov 26, 2025
1 check 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