js-lingui
js-lingui copied to clipboard
Major bundlesize increase with @lingui/core 3.14.0
Describe the bug
https://bundlephobia.com/package/@lingui/[email protected]
https://github.com/graphcommerce-org/graphcommerce/pull/1536#issuecomment-1168603211

To Reproduce
Use new version and measure the resulting bundle size
Expected behavior
Bundlesize is in the same ballpark als the older version
Don't know if this is related, but for us messageformat-parser
gets included in the production build, even though it should get filtered out when the NODE_ENV is set to production, which is +- 5kb.
I've fixed it by adding a custom webpack rule that uses the null-loader for that package, but it doesn't seem ideal.
@semoal This one is kinda important, currently stil stuck on the old version :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale
We noticed this increase in bundle size too. Any change that this could be fixed?
Hi guys, sorry for this problem ;| I just checked and the commit that caused the problem was this: https://github.com/lingui/js-lingui/pull/1258 I'm open to suggestions about how to handle exports on package.json to bundlers omit automatically ESM/r CJS..
@semoal could you elaborate more on that? Do you think bundlers pull to the bundle both version cjs and esm at the same time?
Should be fixed by #1343
@thekip Ohh yeahh! Will check this out soon to see if this resolves the issue :)