Skip to content

ref(build): Handle JS version in rollup config generation function #4654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Mar 1, 2022

This builds on #4650, which introduced a function to generate rollup configs for our CDN bundles, allowing that function to handle both ES5 and ES6 compilation. No change to bundle contents.

Note: This doesn't make any difference for the four packages the change is applied to in this PR, but will enable @sentry/browser to use the new config generation function, a change which will come in a future PR.

Ref: https://getsentry.atlassian.net/browse/WEB-644

@lobsterkatie lobsterkatie force-pushed the kmclb-handle-js-version-rollup-config-function branch from 3ed0dd0 to 51e67e3 Compare March 1, 2022 14:53
@lobsterkatie lobsterkatie marked this pull request as ready for review March 1, 2022 14:54
@lobsterkatie lobsterkatie enabled auto-merge (squash) March 1, 2022 14:55
@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2022

size-limit report

Path Base Size (7fe5717) Current Size Change
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.77 KB 19.77 KB 0%
@sentry/browser - ES5 CDN Bundle (minified) 63.47 KB 63.47 KB 0%
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.44 KB 18.44 KB -0.02% 🔽
@sentry/browser - ES6 CDN Bundle (minified) 56.6 KB 56.6 KB 0%
@sentry/browser - Webpack (gzipped + minified) 22.2 KB 22.2 KB 0%
@sentry/browser - Webpack (minified) 76.36 KB 76.36 KB 0%
@sentry/react - Webpack (gzipped + minified) 22.23 KB 22.23 KB 0%
@sentry/nextjs Client - Webpack (gzipped + minified) 46.4 KB 46.4 KB 0%
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 27.23 KB 27.23 KB -0.01% 🔽

@lobsterkatie lobsterkatie merged commit dee05a6 into master Mar 1, 2022
@lobsterkatie lobsterkatie deleted the kmclb-handle-js-version-rollup-config-function branch March 1, 2022 15:17
AbhiPrasad pushed a commit that referenced this pull request Mar 2, 2022
…4654)

This builds on #4650, which introduced a function to generate rollup configs for our CDN bundles, allowing that function to handle both ES5 and ES6 compilation. No change to bundle contents.

Note: This doesn't make any difference for the four packages the change is applied to here, but will enable `@sentry/browser` to use the new config generation function, a change which will come in a future PR.
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