2018-12-11 15:31:48 +00:00
|
|
|
import * as sapper from '../__sapper__/client.js'
|
|
|
|
import './routes/_utils/serviceWorkerClient'
|
|
|
|
import './routes/_utils/historyEvents'
|
|
|
|
import './routes/_utils/loadingMask'
|
2019-07-21 22:31:26 +00:00
|
|
|
import './routes/_utils/forceOnline'
|
2020-05-19 14:52:28 +00:00
|
|
|
import { mark, stop } from './routes/_utils/marks'
|
2021-03-14 01:31:17 +00:00
|
|
|
import { loadPolyfills } from './routes/_utils/polyfills/loadPolyfills'
|
|
|
|
import { loadNonCriticalPolyfills } from './routes/_utils/polyfills/loadNonCriticalPolyfills'
|
2018-12-11 15:31:48 +00:00
|
|
|
|
2020-05-19 14:52:28 +00:00
|
|
|
mark('loadPolyfills')
|
2018-12-11 15:31:48 +00:00
|
|
|
loadPolyfills().then(() => {
|
2020-05-19 14:52:28 +00:00
|
|
|
stop('loadPolyfills')
|
|
|
|
mark('sapperStart')
|
2018-12-11 15:31:48 +00:00
|
|
|
sapper.start({ target: document.querySelector('#sapper') })
|
2020-05-19 14:52:28 +00:00
|
|
|
stop('sapperStart')
|
|
|
|
/* no await */ loadNonCriticalPolyfills()
|
2018-12-11 15:31:48 +00:00
|
|
|
})
|
|
|
|
|
2018-12-16 03:21:20 +00:00
|
|
|
console.log('process.env.NODE_ENV', process.env.NODE_ENV)
|
|
|
|
|
2018-12-11 15:31:48 +00:00
|
|
|
if (module.hot) {
|
|
|
|
module.hot.accept()
|
|
|
|
}
|