Closed
Description
Hi, we recently upgraded from 0.7.3 to 0.9.2 and noticed that SSR latency was almost twice slower than before.
Investigating using v8-profiler I've found that this happened due to a lot of module require being called inline.
Most of then seem to be from require('fbjs/lib/invariant')
.
I've changed inlineRequire
to false
in scripts/getBabelOptions.js
and it fixed for us:
writeRelayQueryPayload
runs about 6 times faster after the change.
Is there any problem in disabling inlineRequire
?
Metadata
Metadata
Assignees
Labels
No labels