UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

18 lines (15 loc) 770 B
// leaving this as an example of afterClientRender // import { afterClientRender } from './render' // if (process.env.ONE_ENABLE_REACT_SCAN) { // // @ts-expect-error (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 // @zetavg: the actual thing we need to do is maybe import and call `installExpoGlobalPolyfill`. This is currently the file that does it, so we import it. // import 'expo-modules-core/src/polyfill/index.web.ts'