You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You shouldn't rely on tslib at all, it is a typescript compilation level helper, as documented on its side. I saw that by checking dependencies on my server code. We don't use importHelpers flag, it is totally unnecessary in any kind of environment, but still its the single dependency you have
RxJS version:
6.x and higher
Expected behavior:
tslib not being listed as dependency at all
and try to dedupe runtime code generated by tsc per each files. There are some internal discussion around if we should get away from it or not after re-do size benchmark.
It was introduced due to benefit of tslib
this can avoid duplicate declarations of things like __extends, __assign, etc., this means delivering users smaller files on average, as well as less runtime overhead. For optimized bundles with TypeScript, you should absolutely consider using tslib and --importHelpers.
in lib itself.
it is a typescript compilation level helper
I'm curios to hear more about this - tslib pkg itself says it's This is a runtime library for tsc builds and we use it for those purpose.
You shouldn't rely on tslib at all, it is a typescript compilation level helper, as documented on its side. I saw that by checking dependencies on my server code. We don't use
importHelpers
flag, it is totally unnecessary in any kind of environment, but still its the single dependency you haveRxJS version:
6.x and higher
Expected behavior:
tslib not being listed as dependency at all
Actual behavior:
tslib as dependency
Additional information:
https://github.com/Microsoft/tslib
The text was updated successfully, but these errors were encountered: