【发布时间】:2018-02-12 22:52:45
【问题描述】:
我的 react 本机应用程序需要 2 整分钟才能加载,我想知道有什么问题。当它达到 97.4% 时,它会在达到 100% 之前冻结大约整整两分钟。我怎样才能找出这种延迟的原因?
>npm start -- --reset-cache
> crew_rn@0.0.1 start /Users/######/crew_rn
> node node_modules/react-native/local-cli/cli.js start "--reset-cache"
Scanning folders for symlinks in /Users/######/crew_rn/node_modules (9ms)
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ Running Metro Bundler on port 8081. │
│ │
│ Keep Metro running while developing on any JS projects. Feel free to │
│ close this tab and run your own Metro instance if you prefer. │
│ │
│ https://github.com/facebook/react-native │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
/Users/#####/crew_rn
Metro Bundler ready.
Loading dependency graph, done.
warning: the transform cache was reset.
BUNDLE [ios, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░ 97.4% (598/606)
【问题讨论】:
标签: reactjs react-native terminal bundling-and-minification