UNPKG

vike

Version:

(Replaces Next.js/Nuxt) 🔨 Composable framework to build advanced applications with flexibility and stability.

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; }