diff --git a/config/rollup.config.js b/config/rollup.config.js index 49aa94d54d2..6d4b281c073 100644 --- a/config/rollup.config.js +++ b/config/rollup.config.js @@ -127,16 +127,7 @@ export default [ './dist/index.js', './dist/apollo-client.cjs', ), - // The bundlesize check configured in package.json reflects the total size of - // @apollo/client/core (note the /core), rather than @apollo/client, which - // currently includes React-related exports that may not be used by all - // consumers. We are planning to confine those React exports to - // @apollo/client/react in AC4 (see issue #8190). - prepareCJS( - './dist/core/index.js', - './temp/bundlesize.cjs', - ), prepareCJSMinified( - './temp/bundlesize.cjs', + './dist/apollo-client.cjs', ), ]; diff --git a/package.json b/package.json index f0b032f93c1..3f6b717441b 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,8 @@ "bundlesize": [ { "name": "apollo-client", - "path": "./temp/bundlesize.min.cjs", - "maxSize": "25 kB" + "path": "./dist/apollo-client.min.cjs", + "maxSize": "27.7 kB" } ], "engines": {