add clarifying comment

This commit is contained in:
Avital Oliver
2013-02-06 09:37:12 -08:00
committed by David Glasser
parent afd5094468
commit d50ccd2dbc

View File

@@ -419,6 +419,7 @@ _.extend(Bundle.prototype, {
// directory within the bundle
bundleNodeModules: function (pkg) {
var nodeModulesPath = path.join(pkg.npmDir(), 'node_modules');
// use '/' rather than path.join since this is part of a url
var relNodeModulesPath = ['packages', pkg.name, 'node_modules'].join('/');
this.nodeModulesDirs[relNodeModulesPath] = nodeModulesPath;
},