mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-22 11:57:27 +08:00
Better React Native Web support (#2511)
* Better React Native Web support * Adding better react-native-web support for jest testing
This commit is contained in:
@@ -43,6 +43,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
|
||||
moduleNameMapper: {
|
||||
'^react-native$': 'react-native-web',
|
||||
},
|
||||
moduleFileExtensions: ['web.js', 'js', 'json', 'web.jsx', 'jsx'],
|
||||
};
|
||||
if (rootDir) {
|
||||
config.rootDir = rootDir;
|
||||
|
||||
Reference in New Issue
Block a user