From d50ccd2dbc1f99c5dffaa4da375c1617e55279a3 Mon Sep 17 00:00:00 2001 From: Avital Oliver Date: Wed, 6 Feb 2013 09:37:12 -0800 Subject: [PATCH] add clarifying comment --- lib/bundler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundler.js b/lib/bundler.js index 4db06426ab..fe74761b05 100644 --- a/lib/bundler.js +++ b/lib/bundler.js @@ -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; },