UNPKG

next

Version:

The React Framework

21 lines (20 loc) 967 B
import { appBootstrap } from './app-bootstrap'; import { isRecoverableError } from './react-client-callbacks/on-recoverable-error'; window.next.turbopack = true; self.__webpack_hash__ = ''; // eslint-disable-next-line @next/internal/typechecked-require const instrumentationHooks = require('../lib/require-instrumentation-client'); appBootstrap((assetPrefix)=>{ const { hydrate } = require('./app-index'); try { hydrate(instrumentationHooks, assetPrefix); } finally{ if (process.env.NODE_ENV !== 'production') { const enableCacheIndicator = process.env.__NEXT_CACHE_COMPONENTS; const { getOwnerStack } = require('../next-devtools/userspace/app/errors/stitched-error'); const { renderAppDevOverlay } = require('next/dist/compiled/next-devtools'); renderAppDevOverlay(getOwnerStack, isRecoverableError, enableCacheIndicator); } } }); //# sourceMappingURL=app-next-turbopack.js.map