
TypeScript compiler will now build to ES2015 code and modules. Babili is used to minify ES2015 code, providing an initial optimization that we couldn't previously get just from Uglify. Uses Babel to convert ES2015 to UMD/ES5 code, and Uglify to minimize the output.
18 lines
535 B
TypeScript
18 lines
535 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
/**
|
|
* A replacement for @Injectable to be used in the compiler, so that
|
|
* we don't try to evaluate the metadata in the compiler during AoT.
|
|
* This decorator is enough to make the compiler work with the ReflectiveInjector though.
|
|
* @Annotation
|
|
*/
|
|
export function CompilerInjectable(): (data: any) => any {
|
|
return (x) => x;
|
|
}
|