Skip to content

Commit d3b113a

Browse files
committed
[core] Fix forwardRef being hoisted
1 parent db6de7b commit d3b113a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

babel.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ const defaultAlias = {
3333
'@material-ui/lab': './packages/material-ui-lab/src',
3434
'@material-ui/styles': './packages/material-ui-styles/src',
3535
'@material-ui/utils': './packages/material-ui-utils/src',
36+
/**
37+
* required to support forwardRef
38+
* the breaking change in hnrs was the dropped support for react 0.13 which we
39+
* don't do anyway so we just force our version of hnrs on other packages.
40+
*/
41+
'hoist-non-react-statics': './packages/material-ui/node_modules/hoist-non-react-statics',
3642
};
3743

3844
module.exports = {

0 commit comments

Comments
 (0)