From e3991351f0704cc314c549f7d6a34b65c835a620 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Fri, 24 Jan 2020 18:13:25 +0530 Subject: [PATCH] rollup - Handle react-is named export problem --- rollup.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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"] + } + }) ] }