tradle / rn-nodeify

hack to allow react-native projects to use node core modules, and npm modules that use them
MIT License
614 stars 114 forks source link

feat: support `child_process` (no shim) #107

Closed ctjlewis closed 3 years ago

ctjlewis commented 3 years ago

Metro would fail to bundle scripts containing a child_process import, and rn-nodeify would not allow a way around this.

This PR adds that support. There is no shim, and you will not be able to actually spawn processes, but it will prevent module resolution errors.