X Tutup
Skip to content

Commit dbfc4c1

Browse files
committed
chore(build): inline Traceur options just like we do everywhere
1 parent 301863b commit dbfc4c1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tools/broccoli/make-broccoli-tree.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ function makeCjsTree() {
148148
exclude: ['angular2/src/core/zone/vm_turn_zone.es6']
149149
});
150150

151-
// Use Traceur to transpile original sources to ES6
152-
var traceurOpts = {
151+
var cjsTree = new TraceurCompiler(modulesTree, '.js', '.map', {
153152
sourceMaps: true,
154153
annotations: true, // parse annotations
155154
types: true, // parse types
@@ -159,9 +158,7 @@ function makeCjsTree() {
159158
// Don't use type assertions since this is partly transpiled by typescript
160159
typeAssertions: false,
161160
modules: 'commonjs'
162-
}
163-
164-
var cjsTree = new TraceurCompiler(modulesTree, '.js', '.map', traceurOpts);
161+
});
165162

166163
// Now we add the LICENSE file into all the folders that will become npm packages
167164
outputPackages.forEach(

0 commit comments

Comments
 (0)
X Tutup