Minor questions on new module BNF

Jason Orendorff jason.orendorff at gmail.com
Tue Jun 4 09:52:30 PDT 2013


On Tue, Jun 4, 2013 at 11:44 AM, Jeff Morrison <lbljeffmo at gmail.com> wrote:

>  FWIW this is what we have been doing at Facebook for a while now (over a
> year), and it's worked pretty well for us.
>
> We use a require() function for pulling in dependencies. We then
> statically extract all require() callsites for a given module during our
> build step, and use that to identify the dependency-graph of a file (for
> packaging, etc).
>

Thanks, this is a useful data point. Does your require() execute stuff
lazily, on demand? How much time does that save on startup (and are there
other benefits)?

-j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130604/fc121518/attachment.html>


More information about the es-discuss mailing list