Do Anonymous Exports Solve the Backwards Compatibility Problem?

James Burke jrburke at
Thu Dec 20 12:05:59 PST 2012

On Thu, Dec 20, 2012 at 11:51 AM, Sam Tobin-Hochstadt <samth at> wrote:
>  - I don't see what a mutable `exports` object would add on top of
> this system, but maybe I'm not understanding what you're saying.

It is one way to allow circular dependencies in CommonJS/Node/AMD
systems. The other way is to call require() at runtime to get the
cached module value at the time of actual use. Some examples here:


More information about the es-discuss mailing list