Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 1 | /// <reference path="../typings/index.d.ts"/> |
| 2 | |
| 3 | import 'core-js/client/shim'; |
| 4 | import 'zone.js/dist/zone'; |
| 5 | |
| 6 | import '@angular/common'; |
| 7 | import 'rxjs'; |
| 8 | |
| 9 | import './index.scss'; |
| 10 | |
| 11 | import {enableProdMode} from '@angular/core'; |
| 12 | import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; |
| 13 | import {AppModule} from './app'; |
| 14 | |
| 15 | declare var process: any; |
Matteo Scandolo | 8b9f164 | 2016-12-05 17:08:26 -0800 | [diff] [blame] | 16 | |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 17 | if (process.env.NODE_ENV === 'production') { |
| 18 | enableProdMode(); |
| 19 | } else { |
| 20 | Error['stackTraceLimit'] = Infinity; // tslint:disable-line:no-string-literal |
| 21 | require('zone.js/dist/long-stack-trace-zone'); // tslint:disable-line:no-var-requires |
| 22 | } |
| 23 | |
| 24 | platformBrowserDynamic().bootstrapModule(AppModule); |