mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
properly use builder-generated npm path
This fix obviates the direct need forbb7710067, but given that we are allowing colons in package names, we might as well allow them in generated file names anyway (and keepbb7710067).
This commit is contained in:
@@ -1152,9 +1152,21 @@ _.extend(JsImage.prototype, {
|
||||
item.targetPath,
|
||||
{ data: new Buffer(item.source, 'utf8') });
|
||||
var loadItem = {
|
||||
path: loadPath,
|
||||
node_modules: item.nodeModulesDirectory ?
|
||||
item.nodeModulesDirectory.preferredBundlePath : undefined
|
||||
path: loadPath
|
||||
};
|
||||
|
||||
if (item.nodeModulesDirectory) {
|
||||
// We need to make sure to use the directory name we got from
|
||||
// builder.generateFilename here.
|
||||
// XXX these two parallel data structures of self.jsToLoad and
|
||||
// self.nodeModulesDirectories are confusing
|
||||
var generatedNMD = _.findWhere(
|
||||
nodeModulesDirectories,
|
||||
{sourcePath: item.nodeModulesDirectory.sourcePath}
|
||||
);
|
||||
if (generatedNMD) {
|
||||
loadItem.node_modules = generatedNMD.preferredBundlePath;
|
||||
}
|
||||
};
|
||||
|
||||
if (item.sourceMap) {
|
||||
|
||||
Reference in New Issue
Block a user