rollup - Handle react-is named export problem

This commit is contained in:
2020-01-24 18:13:25 +05:30
parent 302d06af58
commit e3991351f0
+8 -1
View File
@@ -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"]
}
})
]
}