Don't prevent plugin source batches from having a sourceRoot.

This commit is contained in:
Ben Newman
2016-01-20 23:30:28 -05:00
parent 88b238db4d
commit 3d6dfff9a3

View File

@@ -96,8 +96,8 @@ export class CompilerPluginProcessor {
var sourceBatches = _.map(self.unibuilds, function (unibuild) {
const { pkg: { name }, arch } = unibuild;
const sourceRoot = name
? self.isopackCache.getSourceRoot(name, arch)
: self.sourceRoot;
&& self.isopackCache.getSourceRoot(name, arch)
|| self.sourceRoot;
return new PackageSourceBatch(unibuild, self, {
sourceRoot,