chore(build): inline Traceur options just like we do everywhere
This commit is contained in:
parent
301863b105
commit
dbfc4c1c16
|
@ -148,8 +148,7 @@ function makeCjsTree() {
|
||||||
exclude: ['angular2/src/core/zone/vm_turn_zone.es6']
|
exclude: ['angular2/src/core/zone/vm_turn_zone.es6']
|
||||||
});
|
});
|
||||||
|
|
||||||
// Use Traceur to transpile original sources to ES6
|
var cjsTree = new TraceurCompiler(modulesTree, '.js', '.map', {
|
||||||
var traceurOpts = {
|
|
||||||
sourceMaps: true,
|
sourceMaps: true,
|
||||||
annotations: true, // parse annotations
|
annotations: true, // parse annotations
|
||||||
types: true, // parse types
|
types: true, // parse types
|
||||||
|
@ -159,9 +158,7 @@ function makeCjsTree() {
|
||||||
// Don't use type assertions since this is partly transpiled by typescript
|
// Don't use type assertions since this is partly transpiled by typescript
|
||||||
typeAssertions: false,
|
typeAssertions: false,
|
||||||
modules: 'commonjs'
|
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
|
// Now we add the LICENSE file into all the folders that will become npm packages
|
||||||
outputPackages.forEach(
|
outputPackages.forEach(
|
||||||
|
|
Loading…
Reference in New Issue