rxjs
rxjs copied to clipboard
7.5.5 increased bundle size
Describe the bug
The "require" fields added by https://github.com/ReactiveX/rxjs/pull/6821 cause webpack to use the cjs version instead of the esm version. If all the "require" fields are removed, the bundle size will be reduced.
Expected behavior
webpack should use the esm version.
Reproduction code
No response
Reproduction URL
No response
Version
7.5.5
Environment
No response
Additional context
No response
Adding import condition above require condition should fix it
@SimenB can you clarify: is this something rxjs needs to change or is there a config change a project can do to mitigate this?
my suggested solution would be here in rxjs