Fix React 17 jsx-runtime module resolution bug
This commit is contained in:
parent
edd453cc47
commit
1abf289d1b
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ const configuration: Configuration = {
|
|||
fallback: {
|
||||
path: require.resolve('path-browserify'),
|
||||
util: require.resolve('util'),
|
||||
// https://github.com/facebook/react/issues/20235#issuecomment-1061708958
|
||||
'react/jsx-runtime': 'react/jsx-runtime.js',
|
||||
'react/jsx-dev-runtime': 'react/jsx-dev-runtime.js',
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue