mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 05:15:49 +08:00
Whitelist react-native-dom in haste/cli config defaults (#20393)
Summary: This adds `react-native-dom` to `hasteImpl.js` because it's not currently possible to configure it from an out of tree platform. Also adds the relevant `providesModuleNodeModules` and `platforms` values to the default RN CLI config. This should hopefully be able to be removed once better support for out of tree platforms is implemented. Pull Request resolved: https://github.com/facebook/react-native/pull/20393 Differential Revision: D9007186 Pulled By: hramos fbshipit-source-id: 67077860dc1fb191d80300fb980599ed76d5f91c
This commit is contained in:
committed by
Facebook Github Bot
parent
253b29dbd8
commit
c4bcca6685
@@ -70,11 +70,11 @@ const defaultConfig = {
|
||||
hasteImplModulePath: require.resolve('../../jest/hasteImpl'),
|
||||
|
||||
getPlatforms(): Array<string> {
|
||||
return ['ios', 'android', 'windows', 'web'];
|
||||
return ['ios', 'android', 'windows', 'web', 'dom'];
|
||||
},
|
||||
|
||||
getProvidesModuleNodeModules(): Array<string> {
|
||||
return ['react-native', 'react-native-windows'];
|
||||
return ['react-native', 'react-native-windows', 'react-native-dom'];
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user