UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

9 lines (8 loc) 406 B
export { getGlobalContextPublicShared }; import { getPublicProxy } from './getPublicProxy.js'; import { assert } from '../utils/assert.js'; function getGlobalContextPublicShared(globalContext) { assert(globalContext._isOriginalObject); // ensure we preserve the original object reference const globalContextPublic = getPublicProxy(globalContext, 'globalContext'); return globalContextPublic; }