2017-04-11 20:45:59 +00:00
|
|
|
(<any>console).timeStamp('entry point')
|
2016-12-23 09:06:53 +00:00
|
|
|
|
|
|
|
import 'core-js'
|
|
|
|
import 'zone.js/dist/zone.js'
|
|
|
|
import 'core-js/es7/reflect'
|
|
|
|
import 'jquery'
|
|
|
|
|
|
|
|
// Always land on the start view
|
|
|
|
location.hash = ''
|
|
|
|
|
2017-04-12 10:12:57 +00:00
|
|
|
import { RootModule } from './app.module'
|
2016-12-23 09:06:53 +00:00
|
|
|
import { enableProdMode } from '@angular/core'
|
|
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
|
|
|
|
|
2017-04-11 00:22:48 +00:00
|
|
|
if ((<any>global).require('electron-is-dev')) {
|
2016-12-23 09:06:53 +00:00
|
|
|
console.warn('Running in debug mode')
|
|
|
|
} else {
|
|
|
|
enableProdMode()
|
|
|
|
}
|
|
|
|
|
2017-04-11 20:45:59 +00:00
|
|
|
(<any>console).timeStamp('angular bootstrap started')
|
2017-04-11 00:22:48 +00:00
|
|
|
platformBrowserDynamic().bootstrapModule(RootModule);
|
2016-12-23 09:06:53 +00:00
|
|
|
|
|
|
|
|
2016-12-26 22:21:50 +00:00
|
|
|
(<any>process).emitWarning = function () { console.log(arguments) }
|