Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 29, 2016
1 parent 21b7238 commit 47e90dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ Builder.prototype.compile = function(moduleNameOrLoad, outFile, opts) {
return moduleNameOrLoad;
return self.loader.normalize(moduleNameOrLoad)
.then(function(moduleName) {
if (opts.cache !== true)
if (!opts || opts.cache !== true)
self.invalidate(moduleName);
return self.tracer.getLoadRecord(getCanonicalName(self.loader, moduleName), true);
});
Expand Down

0 comments on commit 47e90dc

Please sign in to comment.