TreeShaking with RxJS 7.x and WebPack 5 #7084
Unanswered
Carsten-Leue
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to treeshake rxjs in my TypeScript application that is bundled via WebPack:
According to https://rxjs.dev/guide/installation I would have to use the ES2015 exports of rxjs, but I cannot find out how to do that.
I have already posted this question to https://stackoverflow.com/questions/73992486/treeshaking-with-rxjs-7-x-and-webpack-5 however without success.
What I find is that with webpack config that successfully tree shakes versions
rxjs@<7
picks up the cjs version for rxjs 7, which basically prevents any tree shaking.Any help is highly appreciated
Similar issues might be #6856 or #6903 but I do not understand how to solve the problem based on discussion in these issues.
Beta Was this translation helpful? Give feedback.
All reactions