Skip to content

Commit

Permalink
Update React Native config 加载过程.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yinhangfeng authored Mar 22, 2019
1 parent 621e868 commit 32e1776
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions React Native config 加载过程.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@

## react-native 0.59

```
https://github.com/react-native-community/react-native-cli/blob/v2.0.0/packages/cli/src/commands/server/runServer.js#L48
https://github.com/react-native-community/react-native-cli/blob/v2.0.0/packages/cli/src/tools/loadMetroConfig.js#L95
https://github.com/facebook/metro/blob/v0.53.1/packages/metro-config/src/loadConfig.js#L239
https://github.com/facebook/metro/blob/v0.53.1/packages/metro-config/src/loadConfig.js#L62
默认配置文件名
[
'metro.config.js',
'metro.config.json',
'package.json',
'rn-cli.config.js',
]
默认 react-native config
https://github.com/react-native-community/react-native-cli/blob/v2.0.0/packages/cli/src/tools/loadMetroConfig.js#L34
默认 metro config
https://github.com/facebook/metro/blob/v0.53.1/packages/metro-config/src/defaults/index.js
```

0 comments on commit 32e1776

Please sign in to comment.