Commit b528795
authored
Fixed wrong usage of require when resolving supportsCodegenConfig in react-native.config.js (#657)
* Fixed wrong usage of require when resolving supportsCodegenConfig
When resolving the version inside `react-native-config` which is used by the autolinking gradle tasks, the wrong use of require was used.
This fix changes from using `require.main.require` -> `require`.
The difference is that require.main.require resolves from the entry point (main script), while require resolves from the location of the current file.
* Codereview: Removed test for code gen alltogether1 parent e870106 commit b528795
1 file changed
+5
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 1 | | |
13 | 2 | | |
14 | 3 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
22 | 9 | | |
23 | 10 | | |
24 | 11 | | |
0 commit comments