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

Commit

Permalink
ensure compile is cacheless
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 29, 2016
1 parent e56d05e commit 21b7238
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ Builder.prototype.config = function(config, saveForReset, ignoreBaseURL) {
* Builder Operations
*/
function processTraceOpts(options, defaults) {
var opts = {
var opts = {
// conditional tracing options
browser: undefined,
node: undefined,
Expand Down Expand Up @@ -495,7 +495,9 @@ Builder.prototype.compile = function(moduleNameOrLoad, outFile, opts) {
return moduleNameOrLoad;
return self.loader.normalize(moduleNameOrLoad)
.then(function(moduleName) {
return self.tracer.getLoadRecord(getCanonicalName(self.loader, moduleName), true);
if (opts.cache !== true)
self.invalidate(moduleName);
return self.tracer.getLoadRecord(getCanonicalName(self.loader, moduleName), true);
});
})
.then(function(load) {
Expand Down

0 comments on commit 21b7238

Please sign in to comment.