[BUG] Exclude tslib from bundle?
See original GitHub issue🐞 Bug report
Description
https://bundlephobia.com/package/@micro-sentry/browser@6.0.0 shows that a big part of the package size comes from tslib. Is that necessary in the browser bundle?
Reproduction
Go to https://bundlephobia.com/package/@micro-sentry/browser@6.0.0
Expected behavior
https://bundlephobia.com/package/@micro-sentry/browser@6.0.0 doesn’t show tslib (if possible?)
Versions
- Package @micro-sentry/browser@6.0.0
Additional context
It looks like tslib is only being used for __assign
. Would it be possible to use a different polyfill or perhaps avoid Object.assign and add the keys directly?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Remove tslib from peerDependencies of typescript plugin #265
We force the use of tslib to avoid duplicate code in the bundle. The relative Typescript compiler settings are always used. Without it,...
Read more >"This syntax requires an imported helper but module 'tslib ...
This results in an error: src/index.ts:5:1 - error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
Read more >This syntax requires an imported helper but module 'tslib ...
To solve the error "This syntax requires an imported helper but module 'tslib' cannot be found", install tslib by running npm install -D...
Read more >tslib - npm
This is a runtime library for TypeScript that contains all of the TypeScript helper functions. This library is primarily used by the -- ......
Read more >rollup-plugin-typescript | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great, thanks! Looking good.
@danielcompton thank you!