Skip to content

Commit

Permalink
[BUGFIX beta] wrap es3 keywords in quotes
Browse files Browse the repository at this point in the history
But only for production builds.

closes GH-5128
  • Loading branch information
Stanley Stuart committed Jul 9, 2014
1 parent 3edd7bd commit 2ed738e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Brocfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var moveFile = require('broccoli-file-mover');
var removeFile = require('broccoli-file-remover');
var jshintTree = require('broccoli-jshint');
var replace = require('broccoli-replace');
var es3recast = require('broccoli-es3-safe-recast');

var calculateVersion = require('./lib/calculate-version');

Expand Down Expand Up @@ -353,6 +354,9 @@ if (env !== 'development') {
distTrees.push(prodCompiledSource);
distTrees.push(minCompiledSource);
distTrees.push(buildRuntimeTree());
distTrees = distTrees.map(function(tree){
return es3recast(tree);
});
//distTrees.push(compiledPackageTrees);
}

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"broccoli": "0.12.0",
"broccoli-concat": "0.0.6",
"broccoli-defeatureify": "~0.3.0",
"broccoli-es3-safe-recast": "0.0.7",
"broccoli-es6-module-transpiler": "~0.1.0",
"broccoli-file-creator": "~0.1.0",
"broccoli-file-mover": "~0.2.0",
Expand Down

0 comments on commit 2ed738e

Please sign in to comment.