diff --git a/rollup.config.js b/rollup.config.js index 6aa90fd..70afd78 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -37,6 +37,13 @@ export default { rollupCommonJSResolveHack: true, clean: true }), - commonjs() + commonjs({ + namedExports: { + // left-hand side can be an absolute path, a path + // relative to the current directory, or the name + // of a module in node_modules + "react-is": ["isValidElementType", "isContextConsumer"] + } + }) ] }