metro-buck: only uses object to store modules

Summary: MobileLab seems to point out that just using an object yields the same performance, but smaller memory usage: https://our.intern.facebook.com/intern/fblearner/details/89442096/. Plus, it simplifies the code.

Reviewed By: fromcelticpark

Differential Revision: D13450992

fbshipit-source-id: 87afccfbebdc533801f52cff367cf517611b4317
This commit is contained in:
Jean Lauliac 2018-12-18 04:06:47 -08:00 committed by Facebook Github Bot
parent 3ceb537dca
commit b96c110952

View File

@ -48,7 +48,6 @@ module.exports = {
fbt: true,
requireWeak: true,
xuiglyph: true,
__NUM_MODULES__: true,
DebuggerInternal: true,
define: true,
// React