I work on a project which is using Facebook\'s flow. In the Advanced Configuration of flow and there are two choices for the [options] heading (module.system=haste and modul
They are 2 different ways of resolving modules: haste
is the module system used by react-native for packaging (similar to browserify or webpack for browsers):
https://github.com/facebook/node-haste
The node
module system is the method used by node internally.
As for how they actually differ: unfortunately haste
does not have extensive documentation yet. AFAICT the primary difference is that haste
can resolve packages references (e.g. require('underscore')
) to a single module, whereas node
will actually use a different module for each sub-package. Basically: with node
you can end up with multiple versions of say, underscore
in a single program, whereas with haste
only one version of underscore
is put into the final package.
This can result in subtle differences if there are multiple versions of a module in a project, though apparently haste
is becoming more compatible with existing node behavior.