Adds a gulp task which builds the .ts files (in the cjs build only). The new files have extension .ts since they are now valid typescript. Unfortunately until Typescript can emit System.require, we have to keep the old .es6 version so traceur works inside the Karma preprocessor. This should be fixed soon.
10 lines
295 B
TypeScript
10 lines
295 B
TypeScript
import {global} from 'angular2/src/facade/lang';
|
|
|
|
// HACK: workaround for Traceur behavior.
|
|
// It expects all transpiled modules to contain this marker.
|
|
// TODO: remove this when we no longer use traceur
|
|
export var __esModule = true;
|
|
|
|
export var Math = global.Math;
|
|
export var NaN = global.NaN;
|