mirror of
https://github.com/bendtherules/ts-transformer-visualizer.git
synced 2026-08-18 13:51:48 +00:00
rollup - Handle react-is named export problem
This commit is contained in:
+8
-1
@@ -37,6 +37,13 @@ export default {
|
|||||||
rollupCommonJSResolveHack: true,
|
rollupCommonJSResolveHack: true,
|
||||||
clean: 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"]
|
||||||
|
}
|
||||||
|
})
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user