build: Create internal rollup-utils package#9908
Conversation
|
Only sentry internal eslint config changed. |
packages/rollup-utils/index.mjs
Outdated
| @@ -0,0 +1,9 @@ | |||
| Error.stackTraceLimit = Infinity; | |||
There was a problem hiding this comment.
We already had this before. I believe this was so that we get bigger (ie not truncated) stack traces in case of an error.
There was a problem hiding this comment.
This significantly affects the build performance.
There was a problem hiding this comment.
I can see that. Will remove. Stack traces during build are somewhat meh anyhow.
| "packages/remix", | ||
| "packages/replay", | ||
| "packages/replay-worker", | ||
| "packages/rollup-utils", |
There was a problem hiding this comment.
Can we just make this build? If we move to a different package, we shouldn't change the package name
There was a problem hiding this comment.
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.
packages/rollup-utils/index.mjs
Outdated
| @@ -0,0 +1,9 @@ | |||
| Error.stackTraceLimit = Infinity; | |||
There was a problem hiding this comment.
This significantly affects the build performance.
size-limit report 📦
|
As preparation for v8 and cleaning up our rollup configs to add
preserveModules: falsewithout needing to wipe the pain off our memories afterward this PR creates arollup-utilspackage.This PR doesn't change any functionality (see comment about checksums below). We can later move this package into a
dev-packagesfolder 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.