UNPKG

@visactor/vrender-core

Version:

```typescript import { xxx } from '@visactor/vrender-core'; ```

25 lines (19 loc) 852 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.getLegacyBootstrapState = exports.LEGACY_BOOTSTRAP_STATE_SYMBOL = void 0; const binding_context_1 = require("./binding-context"); function createLegacyBootstrapState() { return { legacyBindingContext: (0, binding_context_1.createLegacyBindingContext)(), preloaded: !1 }; } function getLegacyBootstrapState() { const scope = globalThis; return scope[exports.LEGACY_BOOTSTRAP_STATE_SYMBOL] || (scope[exports.LEGACY_BOOTSTRAP_STATE_SYMBOL] = createLegacyBootstrapState()), scope[exports.LEGACY_BOOTSTRAP_STATE_SYMBOL]; } exports.LEGACY_BOOTSTRAP_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/legacy-bootstrap-state"), exports.getLegacyBootstrapState = getLegacyBootstrapState; //# sourceMappingURL=bootstrap-state.js.map