Skip to content

refactor: update build config for @primer/react and rename import CSS plugin for Rolldown#8044

Open
joshblack wants to merge 10 commits into
mainfrom
copilot/rolldown/react
Open

refactor: update build config for @primer/react and rename import CSS plugin for Rolldown#8044
joshblack wants to merge 10 commits into
mainfrom
copilot/rolldown/react

Conversation

@joshblack

@joshblack joshblack commented Jun 23, 2026

Copy link
Copy Markdown
Member

Updated build tooling for @primer/react to use Rolldown, including renaming the internal CSS import plugin package to match Rolldown naming.

Changelog

New

N/A

Changed

  • Updated @primer/react to build JavaScript with Rolldown.
  • Renamed rollup-plugin-import-css to rolldown-plugin-import-css.
  • Updated the import CSS plugin package to export its TypeScript source directly for Rolldown consumption.
  • Updated the export size helper and Dependabot bundler grouping for Rolldown.

Removed

  • Removed the package Rollup build config and direct Rollup build dependencies.
  • Removed the build step and Rollup build config for rolldown-plugin-import-css.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; build tooling-only change with no public runtime API change

Testing & Reviewing

Validated with npm run build, npm run type-check, npm run lint, npm run lint:css, npm run format:diff, and npm test -- --run.

Merge checklist

@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6b895e7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added staff Author is a staff member integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Jun 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Action required

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. If this doesn't work, you can also use the original workflow here. Check the integration testing docs for step-by-step instructions. Or, apply the integration-tests: skipped manually label to skip these checks.

To publish a canary release for integration testing, apply the Canary Release label to this PR.

@joshblack joshblack changed the title Migrate react build to Rolldown refactor: update build config for @primer/react to rolldown Jun 23, 2026
@joshblack joshblack added the skip changeset This change does not need a changelog label Jun 23, 2026
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from 6469729 to 1017094 Compare June 23, 2026 21:03
@joshblack joshblack force-pushed the copilot/rolldown/react branch from 2e609a8 to 52c006a Compare June 23, 2026 21:03
@joshblack joshblack changed the title refactor: update build config for @primer/react to rolldown refactor: update build config for @primer/react and import CSS plugin to rolldown Jun 23, 2026
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from 1017094 to d5ac815 Compare June 23, 2026 21:05
@joshblack joshblack force-pushed the copilot/rolldown/react branch from 52c006a to 0505bad Compare June 23, 2026 21:05
@github-actions github-actions Bot requested a deployment to storybook-preview-8044 June 23, 2026 21:07 Abandoned
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from d5ac815 to df43076 Compare June 23, 2026 21:09
@joshblack joshblack force-pushed the copilot/rolldown/react branch from 0505bad to b1b47db Compare June 23, 2026 21:09
@github-actions github-actions Bot requested a deployment to storybook-preview-8044 June 23, 2026 21:13 Abandoned
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from df43076 to f45042c Compare June 23, 2026 21:15
@joshblack joshblack force-pushed the copilot/rolldown/react branch from b1b47db to 0faabc0 Compare June 23, 2026 21:15
@github-actions github-actions Bot requested a deployment to storybook-preview-8044 June 23, 2026 21:19 Abandoned
@joshblack joshblack force-pushed the copilot/rolldown/react branch from 0faabc0 to 9be68ba Compare June 23, 2026 21:19
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from f45042c to eda4557 Compare June 23, 2026 21:19
@github-actions github-actions Bot requested a deployment to storybook-preview-8044 June 23, 2026 21:23 Abandoned
@github-actions github-actions Bot temporarily deployed to storybook-preview-8044 June 23, 2026 21:34 Inactive
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from eda4557 to 8c7d5ad Compare June 23, 2026 21:42
@joshblack joshblack force-pushed the copilot/rolldown/react branch from 9be68ba to fc230c4 Compare June 23, 2026 21:42
@github-actions github-actions Bot temporarily deployed to storybook-preview-8044 June 23, 2026 21:53 Inactive
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from 8c7d5ad to 3f5ee13 Compare June 23, 2026 21:56
@joshblack joshblack force-pushed the copilot/rolldown/react branch from fc230c4 to ef8164e Compare June 23, 2026 21:56
@github-actions github-actions Bot temporarily deployed to storybook-preview-8044 June 24, 2026 14:42 Inactive
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from 7a8cdbb to c7efc2e Compare June 24, 2026 16:01
@joshblack joshblack force-pushed the copilot/rolldown/react branch from d04df0a to 39f1f05 Compare June 24, 2026 16:01
@github-actions github-actions Bot requested a deployment to storybook-preview-8044 June 24, 2026 16:05 Abandoned
@github-actions github-actions Bot temporarily deployed to storybook-preview-8044 June 24, 2026 16:19 Inactive
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from c7efc2e to db789e7 Compare June 29, 2026 16:36
@joshblack joshblack force-pushed the copilot/rolldown/react branch from 39f1f05 to ad08de3 Compare June 29, 2026 16:36
@github-actions github-actions Bot temporarily deployed to storybook-preview-8044 June 29, 2026 16:48 Inactive
@joshblack joshblack force-pushed the copilot/rolldown/react branch from ad08de3 to 5f889e2 Compare June 29, 2026 18:01
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from db789e7 to fcfe4cf Compare June 29, 2026 18:01
@github-actions github-actions Bot requested a deployment to storybook-preview-8044 June 29, 2026 18:05 Abandoned
@github-actions github-actions Bot temporarily deployed to storybook-preview-8044 June 29, 2026 18:14 Inactive
@joshblack joshblack force-pushed the copilot/rolldown/styled-react branch from fcfe4cf to 02996f8 Compare June 29, 2026 18:47
@primer

primer Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

🤖 Lint issues have been automatically fixed and committed to this PR.

@primer

primer Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

🤖 Lint issues have been automatically fixed and committed to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm skip changeset This change does not need a changelog staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants