tabby/app/src/entry.ts

26 lines
625 B
TypeScript
Raw Normal View History

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