Skip to content

[FSSDK-13402] Replace rollup with rolldown - #1172

Merged
Raju Ahmed (raju-opti) merged 6 commits into
masterfrom
raju/rolldown
Nov 6, 2026
Merged

Raju Ahmed (raju-opti) merged 6 commits into
masterfrom
raju/rolldown

Conversation

@raju-opti

@raju-opti Raju Ahmed (raju-opti) commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • This replaces rollup with rolldown which has functionalities of most of the rollup plugins we use built-in, and much faster bundling time.

Issues

  • FSSDK-13402

@datadog-optimizely-experimentation

This comment has been minimized.

@coveralls

Coveralls (coveralls) commented Aug 18, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 77.513%. remained the same — raju/rolldown into master

@raju-opti
Raju Ahmed (raju-opti) requested a balanced review from Copilot November 5, 2026 16:01
@raju-opti Raju Ahmed (raju-opti) changed the title Replace rollup with rolldown [FSSDK-13402] Replace rollup with rolldown Nov 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The standalone UMD build can fail without generated message modules, and the CJS example runner can test and delete a stale SDK archive while leaving the current version untested.

2 open issues
What changed in this PR

Migrates the SDK’s multi-platform bundling from Rollup to Rolldown and separates build-time requirements from Node 18 runtime validation.

Changes:

  • Replaces Rollup plugins with Rolldown’s built-in resolution and minification, with explicit syntax and platform settings.
  • Moves automatic builds from prepare to prepack and adds tarball reuse to the CommonJS example runner.
  • Updates CI to build on Node 20 and test the packaged CommonJS SDK on Node 18.
File Description
scripts/​run-cjs-example.js Adds --skip-build support using an existing SDK tarball.
rolldown.config.mjs Migrates bundle configuration, platform resolution, and minification to Rolldown.
package.json Updates build commands, lifecycle hooks, and development dependencies.
package-lock.json Records Rolldown dependencies and removes obsolete packages.
lib/​import.react_native/​README.md Updates shim documentation for Rolldown and its CommonJS interop.
.github/​workflows/​javascript.yml Separates Node 20 packaging from Node 18 runtime testing.

Review effort: Balanced

Comment thread package.json Resolved
Comment thread scripts/run-cjs-example.js Resolved

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the first comment from copilot is worth giving a look. LGTM othewise

@raju-opti
Raju Ahmed (raju-opti) merged commit 95422f5 into master Nov 6, 2026
24 of 27 checks passed
@raju-opti
Raju Ahmed (raju-opti) deleted the raju/rolldown branch November 6, 2026 15:04
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.

4 participants