chore(build): create es5build.js only for files that will become es6 npm packages
This commit is contained in:
parent
3dd0ac1f0a
commit
6dbd4d969b
|
@ -55,8 +55,7 @@ function makeBrowserTree(options) {
|
|||
var es5Tree = new TraceurCompiler(es6Tree, '.js', '.js.map', {modules: 'instantiate', sourceMaps: true});
|
||||
|
||||
// Now we add a few more files to the es6 tree that Traceur should not see
|
||||
// TODO(broccoli): this is wrong. only angular2 and rtts_assert should contain the es5build.js file
|
||||
['angular2', 'benchmarks', 'benchmarks_external', 'benchpress', 'examples', 'rtts_assert'].forEach(
|
||||
['angular2', 'rtts_assert'].forEach(
|
||||
function (destDir) {
|
||||
var extras = new Funnel('tools/build', {files: ['es5build.js'], destDir: destDir});
|
||||
es6Tree = mergeTrees([es6Tree, extras]);
|
||||
|
|
Loading…
Reference in New Issue