Skip to content

Commit

Permalink
Start resolving urls for modures with relative ids in the remote pack…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
Gozala committed May 31, 2011
1 parent a79c634 commit 45bf9cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion graphquire.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ function getDependency(metadata, requirer, next, onProgress, dependencyID) {
// Otherwise we create module and start resolving it's dependencies
module = metadata.modules[id] = { id: id }
module.path = isPluginURI(id) ?
normalizeURI(path.join(metadata.cachePath, id)) : id
path.join(metadata.cachePath, id) : id

if (isPluginURI(id))
module.uri = resolvePluginURI(id)
else if (requirer.uri)
module.uri = resolveURI(dependencyID, requirer.uri)

resolveRequirements(metadata, module, next, onProgress)
}
Expand Down

0 comments on commit 45bf9cb

Please sign in to comment.