Skip to content

Commit

Permalink
Remove more uglifyJs cruft, fixed default case of buildProduction --d…
Browse files Browse the repository at this point in the history
…efine
  • Loading branch information
papandreou committed Oct 12, 2015
1 parent 5af2068 commit 6004b16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
4 changes: 1 addition & 3 deletions bin/buildProduction
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ if (commandLineOptions.cdnoutroot) {

var _ = require('lodash'),
AssetGraph = require('../lib/AssetGraph'),
uglifyJs = AssetGraph.JavaScript.uglifyJs,
uglifyAst = AssetGraph.JavaScript.uglifyAst,
i18nTools = require('../lib/i18nTools'),
query = AssetGraph.query,
urlTools = require('urltools'),
Expand Down Expand Up @@ -323,7 +321,7 @@ if (commandLineOptions.inlinesize) {
process.exit(1);
}
} else {
valueAst = new uglifyJs.AST_True();
valueAst = { type: 'Literal', value: true };
}
defines[matchDefine[1]] = valueAst;
}
Expand Down
7 changes: 0 additions & 7 deletions lib/transforms/cloneForEachLocale.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ module.exports = function (queryObj, options) {
}
}
});
/*
asset.parseTree.transform(new uglifyJs.TreeTransformer(function (node) {
if (node instanceof uglifyJs.AST_SymbolRef && globalValueByName.hasOwnProperty(node.name) && !isLeftHandSideOfAssignment(this.stack)) {
return uglifyAst.objToAst(globalValueByName[node.name]);
}
}));
*/
asset.markDirty();
} else if (asset.isHtml || asset.isSvg) {
var document = asset.parseTree;
Expand Down

0 comments on commit 6004b16

Please sign in to comment.