Mark bundle start time on web (#3147)

* Mark bundle start time on web

* TS
zio/stable
dan 2024-03-08 04:13:36 +00:00 committed by GitHub
parent 1cf49517b5
commit c8e0fa9c97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import '#/platform/markBundleStartTime'
import '#/platform/polyfills'
import {registerRootComponent} from 'expo'
import {doPolyfill} from '#/lib/api/api-polyfill'

View File

@ -0,0 +1,2 @@
// @ts-ignore Web-only. On RN, this is set by Metro.
window.__BUNDLE_START_TIME__ = performance.now()