From 16b08e1af9ba9934041298496e167aafb128c15d Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Tue, 9 Mar 2021 13:43:59 -0500 Subject: [PATCH] Teach Rollup example app about a few more react export names. Fixes these errors: https://github.com/apollographql/apollo-client/issues/7741#issuecomment-791641913 --- examples/bundling/tree-shaking/rollup-ac3/rollup.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/bundling/tree-shaking/rollup-ac3/rollup.config.js b/examples/bundling/tree-shaking/rollup-ac3/rollup.config.js index 56962ae698d..925d24b5207 100644 --- a/examples/bundling/tree-shaking/rollup-ac3/rollup.config.js +++ b/examples/bundling/tree-shaking/rollup-ac3/rollup.config.js @@ -29,6 +29,8 @@ function build({ outputPrefix, externals = [], gzip = false }) { cjs({ namedExports: { 'react': [ + 'createContext', + 'createElement', 'useRef', 'useContext', 'useReducer',