Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.5.5 increased bundle size #6903

Open
BlackGlory opened this issue Mar 19, 2022 · 3 comments
Open

7.5.5 increased bundle size #6903

BlackGlory opened this issue Mar 19, 2022 · 3 comments

Comments

@BlackGlory
Copy link

Describe the bug

The "require" fields added by #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

@SimenB
Copy link
Contributor

SimenB commented Apr 1, 2022

Adding import condition above require condition should fix it

@mokipedia
Copy link

@SimenB can you clarify: is this something rxjs needs to change or is there a config change a project can do to mitigate this?

@SimenB
Copy link
Contributor

SimenB commented Jul 11, 2022

my suggested solution would be here in rxjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants