Skip to content
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

build: Create internal rollup-utils package #9908

Merged
merged 25 commits into from
Dec 20, 2023

Conversation

lforst
Copy link
Member

@lforst lforst commented Dec 19, 2023

As preparation for v8 and cleaning up our rollup configs to add preserveModules: false without needing to wipe the pain off our memories afterward this PR creates a rollup-utils package.

This PR doesn't change any functionality (see comment about checksums below). We can later move this package into a dev-packages folder if we so desire.

We had to change all of the rollup config files to mjs because of some package boundary stuff. This is hopefully a minor change though. It is also kinda good because rollup requires this in newer versions by default.

@lforst
Copy link
Member Author

lforst commented Dec 19, 2023

tarball-checksums.sh before:

sentry-core-7.88.0.tgz                          : 3b34c6cba8cc5ebc1be07f405976ae28269354dc2e9d4776103f8d743d1cb448
sentry-wasm-7.88.0.tgz                          : d2ed909a544988bd8c8a6461fa2dbbb99f51152ed8c8ec4f3f325954764fcc0d
sentry-integrations-7.88.0.tgz                  : 25e675a7ad26dc8e4f2031d2c5ec72e421ef720e967aed92ce36cd0c0d90ec60
sentry-node-experimental-7.88.0.tgz             : a09c1622e5ed9507fe4c540c684aff447516580f601e222241f9214e6acbe0e5
sentry-internal-feedback-7.88.0.tgz             : 3d6022e86ca60a62a0e0de278f34644001a436a2e09823f7aa190dcfcf3f9cd9
sentry-deno-7.88.0.tgz                          : 8acfb32e796f77924a1f0e1714d12e796cdd41fa5ea09291c37b8b0b63a5333f
sentry-astro-7.88.0.tgz                         : eee5d4806682616183385e8fcc72fa3578c3552b0190d04b3bbbc8910ff0fc5e
sentry-ember-7.88.0.tgz                         : c0202d0eabc81cae4694dffb53071b208024596ae5f37e52d0bbe4d6667b05a6
sentry-nextjs-7.88.0.tgz                        : 7b265c305074a05bff8faeaa1a3d66ea5a013233956e73812395aeac8f60e6ab
sentry-replay-7.88.0.tgz                        : d4a08a2244950e6f7689a4d69591fcb885a890d03dadf0ccfd8eba639f701c6f
sentry-tracing-7.88.0.tgz                       : 3d7dd2cd09b3aa2e83c10fe5b246c50c40a77932a359b9fb9408474a26d599d8
sentry-gatsby-7.88.0.tgz                        : 7d1b39192b49875b6f40e21d0ac3ff3e709fc5a8f49149778c87bc42bb56ef5b
sentry-browser-7.88.0.tgz                       : 90c9f0174f1c42d40624d6cbd3f55e7e7ca8222ee3861da2e813b5523cdb4bfe
sentry-opentelemetry-7.88.0.tgz                 : 378e97c847823e022d908630943229421649d562662611bb69da3290e60a21ff
sentry-bun-7.88.0.tgz                           : 0b3b71e57580e8cee81733b1f464bf1868ba785161373ffe2d9c8a1c0d33ce32
sentry-internal-eslint-config-sdk-7.88.0.tgz    : 5c4f5ab5e32df24844a4854878be938876d4237bde34cf588c25832985c27656
sentry-types-7.88.0.tgz                         : d7e5cd2a1a74c030ed3b77448b7fbcd5ca9380ec5ad91105b4a37b0ec137a0ec
sentry-internal-eslint-plugin-sdk-7.88.0.tgz    : eba732249d8c22239869ec00603b3de654dc820874a8b44aaae35d82819763fc
sentry-vue-7.88.0.tgz                           : 6f88f16928c48bf5c8fb759558444be35dd6a59c7cee47ac0be56eb22a33407e
sentry-angular-ivy-7.88.0.tgz                   : ea66073455cae7078b81e78d3ef4246d76cd8bc72f2e0a916ec1886c1d6a5d44
sentry-opentelemetry-node-7.88.0.tgz            : 8e1aa39f4d61db99c2cd9d3c0caf659ba0bf96f158cb87906d48534988922e5f
sentry-utils-7.88.0.tgz                         : fff65ddc015a68ad13edf4deb6964c259d7bf3c4cbf6d7455b51aaab2c731b08
sentry-internal-tracing-7.88.0.tgz              : af43e9c4cfcef372ff21695a0dc7c612ce02e4ca6646210e3e5987204600d9ea
sentry-svelte-7.88.0.tgz                        : fe135b1a60c8d1fa58175466b413099ca66f8c46969e2e99c7676b24f8c747af
sentry-sveltekit-7.88.0.tgz                     : 8cc274b44456bd13d80d7b4dae2a40e933ca800e277cfc24ebc53a25609caf23
sentry-react-7.88.0.tgz                         : 3cb0f285916dd2aab691feee241ad87875f30d5114e58ae88d25169f2ecdf22f
sentry-hub-7.88.0.tgz                           : 7727eea760925648ba06cc7f8236af634a13236304c950bf8f8c39955743ca63
sentry-remix-7.88.0.tgz                         : 8b9765d657287ad4a1f115a4bc12ec83ea3a7d32589cfaf0f61a07925e90103e
sentry-vercel-edge-7.88.0.tgz                   : 6ca36247a6f46c84e993c611a2fef3040ab9dfdb2e627367c3800bdd92bb1634
sentry-node-7.88.0.tgz                          : f6f0ab5e81a183339f01e05724f39c8c36247c44fa5d6afad00f622fd9511e04
sentry-serverless-7.88.0.tgz                    : 2f633506125df80d3b81e2f186c73d67bfa15f7c299edbca06e5268348f8ab11
sentry-internal-typescript-7.88.0.tgz           : ddba13d68f22fe876f78592a7e487a40b32e89b42724e5563faa6ce6fbf51df7
sentry-angular-7.88.0.tgz                       : c7bd96170f595adc6334899db2647353489a9e75d0fa8d01dad3bd53e3a0de68

tarball-checksums.sh after:

sentry-core-7.88.0.tgz                          : 3b34c6cba8cc5ebc1be07f405976ae28269354dc2e9d4776103f8d743d1cb448
sentry-wasm-7.88.0.tgz                          : d2ed909a544988bd8c8a6461fa2dbbb99f51152ed8c8ec4f3f325954764fcc0d
sentry-integrations-7.88.0.tgz                  : 25e675a7ad26dc8e4f2031d2c5ec72e421ef720e967aed92ce36cd0c0d90ec60
sentry-node-experimental-7.88.0.tgz             : a09c1622e5ed9507fe4c540c684aff447516580f601e222241f9214e6acbe0e5
sentry-internal-feedback-7.88.0.tgz             : 3d6022e86ca60a62a0e0de278f34644001a436a2e09823f7aa190dcfcf3f9cd9
sentry-deno-7.88.0.tgz                          : 8acfb32e796f77924a1f0e1714d12e796cdd41fa5ea09291c37b8b0b63a5333f
sentry-astro-7.88.0.tgz                         : eee5d4806682616183385e8fcc72fa3578c3552b0190d04b3bbbc8910ff0fc5e
sentry-ember-7.88.0.tgz                         : c0202d0eabc81cae4694dffb53071b208024596ae5f37e52d0bbe4d6667b05a6
sentry-nextjs-7.88.0.tgz                        : 7b265c305074a05bff8faeaa1a3d66ea5a013233956e73812395aeac8f60e6ab
sentry-replay-7.88.0.tgz                        : d4a08a2244950e6f7689a4d69591fcb885a890d03dadf0ccfd8eba639f701c6f
sentry-tracing-7.88.0.tgz                       : 3d7dd2cd09b3aa2e83c10fe5b246c50c40a77932a359b9fb9408474a26d599d8
sentry-gatsby-7.88.0.tgz                        : 7d1b39192b49875b6f40e21d0ac3ff3e709fc5a8f49149778c87bc42bb56ef5b
sentry-browser-7.88.0.tgz                       : 90c9f0174f1c42d40624d6cbd3f55e7e7ca8222ee3861da2e813b5523cdb4bfe
sentry-opentelemetry-7.88.0.tgz                 : 378e97c847823e022d908630943229421649d562662611bb69da3290e60a21ff
sentry-bun-7.88.0.tgz                           : 0b3b71e57580e8cee81733b1f464bf1868ba785161373ffe2d9c8a1c0d33ce32
sentry-internal-eslint-config-sdk-7.88.0.tgz    : 1cc65d80762352633c1c0b9476af4ce367cc261db192f76d396cf2727c3db3ac
sentry-types-7.88.0.tgz                         : d7e5cd2a1a74c030ed3b77448b7fbcd5ca9380ec5ad91105b4a37b0ec137a0ec
sentry-internal-eslint-plugin-sdk-7.88.0.tgz    : eba732249d8c22239869ec00603b3de654dc820874a8b44aaae35d82819763fc
sentry-vue-7.88.0.tgz                           : 6f88f16928c48bf5c8fb759558444be35dd6a59c7cee47ac0be56eb22a33407e
sentry-angular-ivy-7.88.0.tgz                   : ea66073455cae7078b81e78d3ef4246d76cd8bc72f2e0a916ec1886c1d6a5d44
sentry-opentelemetry-node-7.88.0.tgz            : 8e1aa39f4d61db99c2cd9d3c0caf659ba0bf96f158cb87906d48534988922e5f
sentry-utils-7.88.0.tgz                         : fff65ddc015a68ad13edf4deb6964c259d7bf3c4cbf6d7455b51aaab2c731b08
sentry-internal-tracing-7.88.0.tgz              : af43e9c4cfcef372ff21695a0dc7c612ce02e4ca6646210e3e5987204600d9ea
sentry-svelte-7.88.0.tgz                        : fe135b1a60c8d1fa58175466b413099ca66f8c46969e2e99c7676b24f8c747af
sentry-sveltekit-7.88.0.tgz                     : 8cc274b44456bd13d80d7b4dae2a40e933ca800e277cfc24ebc53a25609caf23
sentry-react-7.88.0.tgz                         : 3cb0f285916dd2aab691feee241ad87875f30d5114e58ae88d25169f2ecdf22f
sentry-hub-7.88.0.tgz                           : 7727eea760925648ba06cc7f8236af634a13236304c950bf8f8c39955743ca63
sentry-remix-7.88.0.tgz                         : 8b9765d657287ad4a1f115a4bc12ec83ea3a7d32589cfaf0f61a07925e90103e
sentry-vercel-edge-7.88.0.tgz                   : 6ca36247a6f46c84e993c611a2fef3040ab9dfdb2e627367c3800bdd92bb1634
sentry-node-7.88.0.tgz                          : f6f0ab5e81a183339f01e05724f39c8c36247c44fa5d6afad00f622fd9511e04
sentry-serverless-7.88.0.tgz                    : 2f633506125df80d3b81e2f186c73d67bfa15f7c299edbca06e5268348f8ab11
sentry-internal-typescript-7.88.0.tgz           : ddba13d68f22fe876f78592a7e487a40b32e89b42724e5563faa6ce6fbf51df7
sentry-angular-7.88.0.tgz                       : c7bd96170f595adc6334899db2647353489a9e75d0fa8d01dad3bd53e3a0de68

Only sentry internal eslint config changed.

@lforst lforst marked this pull request as ready for review December 19, 2023 13:26
@lforst lforst requested review from mydea, Lms24 and AbhiPrasad December 19, 2023 13:27
@@ -0,0 +1,9 @@
Error.stackTraceLimit = Infinity;
Copy link
Member

Choose a reason for hiding this comment

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

why do we need this?

Copy link
Member Author

Choose a reason for hiding this comment

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

We already had this before. I believe this was so that we get bigger (ie not truncated) stack traces in case of an error.

Copy link
Member

Choose a reason for hiding this comment

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

nice TIL

Copy link
Contributor

Choose a reason for hiding this comment

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

This significantly affects the build performance.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can see that. Will remove. Stack traces during build are somewhat meh anyhow.

Copy link
Member

Choose a reason for hiding this comment

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

great idea!

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

one more thing: Let's please add a small readme to explain the package's purpose

@@ -69,6 +69,7 @@
"packages/remix",
"packages/replay",
"packages/replay-worker",
"packages/rollup-utils",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just make this build? If we move to a different package, we shouldn't change the package name

Copy link
Member Author

Choose a reason for hiding this comment

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

I am gonna leave it at rollup-utils because that is what it is. build is too generic since building has many more steps than just calling some rollup utils.

@@ -0,0 +1,9 @@
Error.stackTraceLimit = Infinity;
Copy link
Contributor

Choose a reason for hiding this comment

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

This significantly affects the build performance.

Copy link
Contributor

github-actions bot commented Dec 20, 2023

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 75.39 KB (+0.06% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 66.79 KB (+0.06% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 60.39 KB (+0.06% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.39 KB (0%)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 30.04 KB (0%)
@sentry/browser - Webpack (gzipped) 21.69 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 72.79 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 64.51 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 30.71 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped) 22.77 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 202.36 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 92.28 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 67.34 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 33.62 KB (0%)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 67.17 KB (+0.06% 🔺)
@sentry/react - Webpack (gzipped) 21.72 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 83.93 KB (+0.05% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 48.57 KB (0%)
@sentry-internal/feedback - Webpack (gzipped) 16.35 KB (0%)

@lforst lforst merged commit 810eb95 into develop Dec 20, 2023
95 checks passed
@lforst lforst deleted the lforst-create-rollup-utils-package branch December 20, 2023 14:14
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.

3 participants