Apollo and graphql bundle size combined increases significantly #8705
Description
Intended outcome:
Bundle size does not increases significantly
Actual outcome:
We can run our production application successfully after we updating to 3.4.9 from 3.1.18, but the size from apollo and specifically from graphql increases around 13kb combined (see image below).
I was aware there that process.env.NODE_ENV
is replaced by __DEV__
to avoid size increment, but apollo size is still increases. It is not that big but if we combine with graphql which is the core depedendcy for apollo-client, it increases significantly.
I'm not quite sure this is an actual issue, or maybe is this expected outcome after we updating the version? if yes then any
reason behind of it?
How to reproduce the issue:
Update to latest version of 3.4.9 and run webpack bundle analyzer, compare the result with 3.3.18.
Versions
System:
OS: macOS 11.2.3
Binaries:
Node: 12.22.0 - ~/.nvm/versions/node/v12.22.0/bin/node
npm: 7.20.6 - ~/.nvm/versions/node/v12.22.0/bin/npm
Browsers:
Chrome: 92.0.4515.159
Safari: 14.0.3
npmPackages:
@apollo/client: 3.4.9 => 3.4.9