Replies: 4 comments
-
rxjs itself currently uses importhelpers Line 5 in 9e9064b It was introduced due to benefit of tslib
in lib itself.
I'm curios to hear more about this - tslib pkg itself says it's |
Beta Was this translation helpful? Give feedback.
-
And I'm moving this into discussions as issues are for core team's backlog for bug tracking. |
Beta Was this translation helpful? Give feedback.
-
I think by version 8 we might be able to remove this. Really we have this in place to support IE and older versions of Node. |
Beta Was this translation helpful? Give feedback.
-
One another reason at the moment was it reduced total bytesize by consolidating boilerplate. I do not know if that's still the case, and would like to remove tslib as well if possible. |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions