one
Version:
One is a new React Framework that makes Vite serve both native and web.
17 lines (14 loc) • 601 B
text/typescript
// leaving this as an example of afterClientRender
// import { afterClientRender } from './render'
// if (process.env.ONE_ENABLE_REACT_SCAN) {
// // @ts-ignore (react-scan can be undefined or not depending on if the monorepo uses it)
// import('react-scan').then(({ scan }) => {
// afterClientRender(() => {
// scan(JSON.parse(`${process.env.ONE_ENABLE_REACT_SCAN}`))
// })
// })
// }
// fixes bad import error in expo-modules-core
// without this you run into error loading web immediately
// where globalThis.expo is not defined
import 'expo-modules-core/src/web/index.web.ts'