diff --git a/config/rollup.config.js b/config/rollup.config.js index 2937bc0ac9e..af7b6f8202c 100644 --- a/config/rollup.config.js +++ b/config/rollup.config.js @@ -127,16 +127,7 @@ export default [ './dist/index.js', './dist/apollo-client.cjs.js', ), - // 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', - './dist/apollo-core.cjs.js', - ), prepareCJSMinified( - './dist/apollo-core.cjs.js', + './dist/apollo-client.cjs.js', ), ]; diff --git a/package.json b/package.json index 5823fd2b49e..bae4db4f962 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,8 @@ "bundlesize": [ { "name": "apollo-client", - "path": "./dist/apollo-core.cjs.min.js", - "maxSize": "24.7 kB" + "path": "./dist/apollo-client.cjs.min.js", + "maxSize": "28.4 kB" } ], "engines": {