2018-12-11 16:31:48 +01:00
|
|
|
import * as sapper from '../__sapper__/client.js'
|
2021-07-05 05:19:04 +02:00
|
|
|
import './routes/_utils/serviceWorkerClient.js'
|
|
|
|
import './routes/_utils/historyEvents.js'
|
|
|
|
import './routes/_utils/loadingMask.js'
|
|
|
|
import './routes/_utils/forceOnline.js'
|
|
|
|
import { mark, stop } from './routes/_utils/marks.js'
|
|
|
|
import { loadPolyfills } from './routes/_utils/polyfills/loadPolyfills.js'
|
|
|
|
import { loadNonCriticalPolyfills } from './routes/_utils/polyfills/loadNonCriticalPolyfills.js'
|
2021-07-16 16:42:32 +02:00
|
|
|
import idbReady from 'safari-14-idb-fix/dist/esm'
|
2018-12-11 16:31:48 +01:00
|
|
|
|
2021-06-19 18:29:32 +02:00
|
|
|
Promise.all([idbReady(), loadPolyfills()]).then(() => {
|
2020-05-19 16:52:28 +02:00
|
|
|
mark('sapperStart')
|
2018-12-11 16:31:48 +01:00
|
|
|
sapper.start({ target: document.querySelector('#sapper') })
|
2020-05-19 16:52:28 +02:00
|
|
|
stop('sapperStart')
|
|
|
|
/* no await */ loadNonCriticalPolyfills()
|
2018-12-11 16:31:48 +01:00
|
|
|
})
|
|
|
|
|
2018-12-16 04:21:20 +01:00
|
|
|
console.log('process.env.NODE_ENV', process.env.NODE_ENV)
|
|
|
|
|
2021-07-05 05:19:04 +02:00
|
|
|
if (import.meta.webpackHot) {
|
|
|
|
import.meta.webpackHot.accept()
|
2018-12-11 16:31:48 +01:00
|
|
|
}
|