23 lines
778 B
JavaScript
23 lines
778 B
JavaScript
import * as sapper from '../__sapper__/client.js'
|
|
import './routes/_utils/serviceWorkerClient'
|
|
import './routes/_utils/historyEvents'
|
|
import './routes/_utils/loadingMask'
|
|
import './routes/_utils/forceOnline'
|
|
import { mark, stop } from './routes/_utils/marks'
|
|
import { loadPolyfills } from './routes/_utils/polyfills/loadPolyfills'
|
|
import { loadNonCriticalPolyfills } from './routes/_utils/polyfills/loadNonCriticalPolyfills'
|
|
import idbReady from 'safari-14-idb-fix'
|
|
|
|
Promise.all([idbReady(), loadPolyfills()]).then(() => {
|
|
mark('sapperStart')
|
|
sapper.start({ target: document.querySelector('#sapper') })
|
|
stop('sapperStart')
|
|
/* no await */ loadNonCriticalPolyfills()
|
|
})
|
|
|
|
console.log('process.env.NODE_ENV', process.env.NODE_ENV)
|
|
|
|
if (module.hot) {
|
|
module.hot.accept()
|
|
}
|