-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: Remove tslib as a dependency #5331
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
Conversation
We no longer use tslib as a dependency on the SDKs.
I don't think we can remove tslib from the Angular SDK. |
Closing this as no time atm, can follow up later. |
@lobsterkatie can we follow up with this? Would be nice to rm -rf the dep. |
If not removed, would it be possible to upgrade it to v2? (node:57375) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/simen/repos/monorepo/node_modules/@sentry/utils/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(node:57375) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/simen/repos/monorepo/node_modules/@sentry/integrations/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(node:57375) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/simen/repos/monorepo/node_modules/@sentry/hub/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(node:57375) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/simen/repos/monorepo/node_modules/@sentry/core/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(node:57375) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/simen/repos/monorepo/node_modules/@sentry/browser/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(node:57375) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/simen/repos/monorepo/node_modules/@sentry/react/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(node:57375) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/simen/repos/monorepo/node_modules/@sentry/tracing/node_modules/tslib/package.json. |
I think this should be possible - let me ask around to get opinions from others. |
Oh yeah, one thing about tslib v2 though is that the bundle size has gone up a little bit, which is why we were hesitant to upgrade: https://bundlephobia.com/package/[email protected] |
Hmm, fair point! However, I assume v2 is also present transitively in any bundle created, so that might not be a problem for actual bundles (i.e., it's already in the bundle)? E.g. your own lockfile in this repo
(you might wanna run Of course, removing it entirely would be best if it's not even needed 👍 |
the lock file stuff is from dev dependencies (lerna monorepo stuffing everything in :P), but I might be wrong, let me investigate! Last yarn dedup run was #3798, we've reached the time for another one probably! |
Right, my point was more to show how prevalent the module (also in its v2 form) is, so bundle size might not be affected as most likely both v1 and v2 are already present |
Done! #5753 |
And from the
I think we should just finally do the upgrade to yarn 2. I started looking into it a while back, but of course got pulled into something else. Will put it back on my mental radar. |
We no longer use tslib as a dependency on the SDKs.
Only place tslib is left is in angular - not sure if we can remove that. If we can, we'll have removed
tslib
as a top level dependency in the SDKs.