From 47e90dcc2121c2510533d69f08d2df09ce548872 Mon Sep 17 00:00:00 2001 From: guybedford Date: Fri, 29 Apr 2016 14:45:03 +0200 Subject: [PATCH] fix tests --- lib/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.js b/lib/builder.js index e295ea6..2c8d892 100644 --- a/lib/builder.js +++ b/lib/builder.js @@ -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); });