From dbfc4c1c1662ce204f44d13df11baa3614bee46f Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 13 Apr 2015 11:37:18 -0700 Subject: [PATCH] chore(build): inline Traceur options just like we do everywhere --- tools/broccoli/make-broccoli-tree.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/broccoli/make-broccoli-tree.js b/tools/broccoli/make-broccoli-tree.js index 72567684a6..359cc01469 100644 --- a/tools/broccoli/make-broccoli-tree.js +++ b/tools/broccoli/make-broccoli-tree.js @@ -148,8 +148,7 @@ function makeCjsTree() { exclude: ['angular2/src/core/zone/vm_turn_zone.es6'] }); - // Use Traceur to transpile original sources to ES6 - var traceurOpts = { + var cjsTree = new TraceurCompiler(modulesTree, '.js', '.map', { sourceMaps: true, annotations: true, // parse annotations types: true, // parse types @@ -159,9 +158,7 @@ function makeCjsTree() { // Don't use type assertions since this is partly transpiled by typescript typeAssertions: false, modules: 'commonjs' - } - - var cjsTree = new TraceurCompiler(modulesTree, '.js', '.map', traceurOpts); + }); // Now we add the LICENSE file into all the folders that will become npm packages outputPackages.forEach(