Skip to content

chore(build): Remove unused instances of @rollup/plugin-commonjs #4590

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
merged 1 commit into from
Feb 16, 2022

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Feb 16, 2022

In four of the five packages in which we're using @rollup/plugin-commonjs, it has no effect (removing it doesn't change the bundles at all). This makes sense, because nowhere in those four packages are we importing any CJS modules. This PR removes those extraneous plugin instances.

(The exception is @sentry/integrations, because the Offline plugin imports localforage, which is CJS. As a result, its rollup config hasn't been changed.)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2022

size-limit report

Path Base Size (bbdd877) Current Size Change
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.68 KB 19.68 KB 0%
@sentry/browser - ES5 CDN Bundle (minified) 63.2 KB 63.2 KB 0%
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.35 KB 18.35 KB -0.01% 🔽
@sentry/browser - ES6 CDN Bundle (minified) 56.36 KB 56.36 KB 0%
@sentry/browser - Webpack (gzipped + minified) 22.13 KB 22.13 KB 0%
@sentry/browser - Webpack (minified) 76.07 KB 76.07 KB 0%
@sentry/react - Webpack (gzipped + minified) 22.17 KB 22.17 KB 0%
@sentry/nextjs Client - Webpack (gzipped + minified) 46.31 KB 46.31 KB 0%
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 27.14 KB 27.14 KB 0%

@lobsterkatie lobsterkatie force-pushed the kmclb-remove-unused-rollup-plugin-commonjs branch from febfadb to 7011384 Compare February 16, 2022 05:36
@lobsterkatie lobsterkatie marked this pull request as ready for review February 16, 2022 06:05
@lobsterkatie lobsterkatie changed the title [WIP] chore(build): Remove unused instances of @rollup/plugin-commonjs chore(build): Remove unused instances of @rollup/plugin-commonjs Feb 16, 2022
@lobsterkatie lobsterkatie enabled auto-merge (squash) February 16, 2022 06:07
@lobsterkatie lobsterkatie merged commit c55e014 into master Feb 16, 2022
@lobsterkatie lobsterkatie deleted the kmclb-remove-unused-rollup-plugin-commonjs branch February 16, 2022 13:49
@AbhiPrasad AbhiPrasad added this to the Pre 7.0.0 Work milestone Feb 23, 2022
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