From 6dbd4d969b00f32034a50bc3239471dd01461b9c Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 13 Apr 2015 10:49:51 -0700 Subject: [PATCH] chore(build): create es5build.js only for files that will become es6 npm packages --- tools/broccoli/make-broccoli-tree.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/broccoli/make-broccoli-tree.js b/tools/broccoli/make-broccoli-tree.js index f2e79c81fd..28f4000633 100644 --- a/tools/broccoli/make-broccoli-tree.js +++ b/tools/broccoli/make-broccoli-tree.js @@ -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]);