blob: baed6f965b53eff58534ea30927fe16b1832af24 [file] [log] [blame]
Matteo Scandolod819c922016-12-02 14:06:14 -08001/// <reference path="../typings/index.d.ts"/>
2
3import 'core-js/client/shim';
4import 'zone.js/dist/zone';
5
6import '@angular/common';
7import 'rxjs';
8
9import './index.scss';
10
11import {enableProdMode} from '@angular/core';
12import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
13import {AppModule} from './app';
14
15declare var process: any;
Matteo Scandolo8b9f1642016-12-05 17:08:26 -080016
Matteo Scandolod819c922016-12-02 14:06:14 -080017if (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
24platformBrowserDynamic().bootstrapModule(AppModule);