Skip to content

Reworked rollup builds#2736

Merged
hamudi-ahmed merged 79 commits intotypescript-integration-rebase-next-catchupfrom
rollup-config-rework
Apr 24, 2026
Merged

Reworked rollup builds#2736
hamudi-ahmed merged 79 commits intotypescript-integration-rebase-next-catchupfrom
rollup-config-rework

Conversation

@hamudi-ahmed
Copy link
Copy Markdown
Contributor

@hamudi-ahmed hamudi-ahmed commented Apr 23, 2026

Goal

This pull request includes a range of improvements and updates across build tooling, configuration, and dependencies. The most significant changes are the modernization of the Rollup build configuration to support both ESM and CJS outputs, updates to dependencies (notably Jest, TypeScript, and React Native), and enhancements to ESLint and Babel configurations for better compatibility and code quality. There are also minor improvements to CI/CD scripts and Docker setup to support the new build and test processes.

Changeset

Build System Modernization

  • Refactored .rollup/index.mjs to generate both ESM and CJS builds with appropriate plugins, output directories, and improved handling of TypeScript declarations. This includes emitting a package.json for CJS builds and updating the version replacement logic. [1] [2]
  • Updated packages/browser/rollup.config.mjs (renamed from rollup.config.npm.mjs) to use the new Rollup configuration structure, with improved tree-shaking and output settings. [1] [2]
  • Changed the main entry in @bugsnag/browser/package.json to dist/index-cjs.js and updated build scripts to use the unified Rollup config. [1] [2]

Dependency and Compatibility Updates

  • Upgraded major dependencies: Jest to v29, TypeScript to v5.9, React Native to v0.68, and related type packages. Added new dependencies for Babel runtime and Rollup plugins. [1] [2]
  • Updated Dockerfile and test scripts to use the new tsconfig.test.json and ensure all relevant config files are copied into the build context.

Linting and Code Quality Enhancements

  • Expanded ESLint configuration to cover new test and fixture directories, added support for web worker environments, and clarified TypeScript version compatibility notes and rules. [1] [2] [3] [4]

Babel and Build Config Improvements

  • Updated Babel configs to better support React Native and browser builds, including improved preset and plugin handling. [1] [2]

Test and CI Pipeline Adjustments

  • Improved Jest JSDOM environment setup/teardown for global objects and compatibility with newer Jest versions.
  • Minor updates to Buildkite and CI scripts to clean up test commands and remove unnecessary flags. [1] [2] [3] [4] [5]

# Conflicts:
#	packages/core/package.json
#	packages/delivery-react-native/package.json
#	packages/node/package.json
#	packages/plugin-network-breadcrumbs/src/network-breadcrumbs.ts
#	packages/plugin-react-native-client-sync/package.json
@hamudi-ahmed hamudi-ahmed force-pushed the typescript-integration-rebase-next-catchup branch from c79be37 to a860e5d Compare April 23, 2026 11:16
@hamudi-ahmed hamudi-ahmed force-pushed the rollup-config-rework branch from 84489ed to 769e8d2 Compare April 23, 2026 11:17
@hamudi-ahmed hamudi-ahmed force-pushed the rollup-config-rework branch from 9f0f322 to 0802b68 Compare April 23, 2026 16:29
@hamudi-ahmed hamudi-ahmed marked this pull request as ready for review April 24, 2026 08:45
@hamudi-ahmed hamudi-ahmed requested a review from gingerbenw April 24, 2026 08:47
@hamudi-ahmed hamudi-ahmed merged commit fa3a60f into typescript-integration-rebase-next-catchup Apr 24, 2026
8 of 16 checks passed
@hamudi-ahmed hamudi-ahmed deleted the rollup-config-rework branch April 24, 2026 09:50
@github-actions
Copy link
Copy Markdown

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 48.34 kB 14.65 kB
After 48.34 kB 14.65 kB
± No change No change

code coverage diff

Coverage values did not change👌.

Total:

Lines Branches Functions Statements
77.38%(+0%) 69.48%(+0%) 74.96%(+0%) 76.43%(+0%)

Generated by 🚫 dangerJS against a65ab97

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