Module naming and declarations

Domenic Denicola domenic at
Wed May 8 12:59:53 PDT 2013

From: James Burke [jrburke at]

> On Wed, May 8, 2013 at 11:35 AM, Domenic Denicola <domenic at> wrote:
>> This is the core of my problem with AMD, at least as I have used it in the real world with RequireJS. You have no idea what `require("string")` means---is `"string"` a package or a URL relative to the base URL? It can be either in RequireJS, and it sounds like that would be the idea here. Super-confusing!

> What part is confusing? Logical IDs are found at baseURL + ID + '.js', and if it is not there, then look at the require.config call to find where it came from.

This dual behavior is exactly what is confusing.

More information about the es-discuss mailing list