Skip to content

Conversation

gingerbenw
Copy link
Member

@gingerbenw gingerbenw commented Oct 16, 2024

Goal

Convert packages to TypeScript using rollup to bundle both ES modules and Common JS modules for maximum compatibility

Changeset

  • Install and configure rollup
  • Add type annotations to browser packages
  • Update build scripts to generate es modules

Testing

Covered by CI

Outstanding

  • Test tree shaking manually

@gingerbenw gingerbenw changed the title Convert packages to typescript and es modules Convert packages to TypeScript and ES Modules Oct 16, 2024
Copy link

github-actions bot commented Oct 16, 2024

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 47.11 kB 14.09 kB
After 55.06 kB 16.54 kB
± ⚠️ +7,954 bytes ⚠️ +2,449 bytes

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against c90570d

@gingerbenw gingerbenw force-pushed the integration/typescript branch 2 times, most recently from 0b18a5e to 25ca84e Compare October 24, 2024 10:23
@gingerbenw gingerbenw changed the title Convert packages to TypeScript and ES Modules Modernise browser packages Oct 25, 2024
@gingerbenw gingerbenw force-pushed the integration/typescript branch from 4d6971c to eade9df Compare November 12, 2024 16:17
@gingerbenw gingerbenw force-pushed the integration/typescript branch from 9a4591e to 7bbbff9 Compare December 5, 2024 16:04
error,
true,
handledState,
1
Copy link
Member Author

Choose a reason for hiding this comment

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

Looking at the signature for Event.create the errorFramesToSkip parameter should be the 5th - the 4th parameter should be for the component name

remove package no longer required for browser delivery as IE8 and IE9 are no longer supported
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