Fix React 17 jsx-runtime module resolution bug

This commit is contained in:
Alex Gleason 2023-01-11 19:40:17 -06:00
parent edd453cc47
commit 1abf289d1b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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',
},
},