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

Commit

Permalink
ensure CommonJS optimizations are disabled for deveopment condition
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Feb 26, 2016
1 parent 97f0dc8 commit 0efab54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ Builder.prototype.bundle = function(expressionOrTree, outFile, opts) {
return traceExpression(self, expressionOrTree, traceOpts);
})
.then(function(tree) {
return compileTree(self.loader, tree, traceOpts, processCompileOpts(opts), outputOpts, self.cache.compile)
return compileTree(self.loader, tree, traceOpts, processCompileOpts(opts, { production: traceOpts.production }), outputOpts, self.cache.compile)
.then(function(compiled) {
return writeOutputs(compiled.outputs, self.loader.baseURL, outputOpts)
.then(function(output) {
Expand Down Expand Up @@ -580,7 +580,7 @@ Builder.prototype.buildStatic = function(expressionOrTree, outFile, opts) {

var outputOpts = processOutputOpts(opts, { outFile: outFile });
var traceOpts = processTraceOpts(opts, { tracePackageConfig: false });
var compileOpts = processCompileOpts(opts, { static: true, entryPoints: entryPoints });
var compileOpts = processCompileOpts(opts, { static: true, entryPoints: entryPoints, production: traceOpts.production });
var inlineMap;

// override the fetch function if given
Expand Down

0 comments on commit 0efab54

Please sign in to comment.