cujojs / curl

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.
https://github.com/cujojs/curl/wiki
Other
1.89k stars 216 forks source link

curl doesn't recognize a dependency to a package's main module when it's referenced as a relative module #110

Closed unscriptable closed 11 years ago

unscriptable commented 11 years ago

curl caches a package's main module as having an absolute id of the package's name. Case in point: when.js is cached internally as "when". However, if a module references that main module using a full module id or a relative module id, e.g. "when/when" -- or relatively as "./when", then curl caches the module again. Both "when" and "when/when" are cached.

We need to determine what the correct id should be in curl's cache. Notes: