UNPKG

@dark-engine/core

Version:

The lightweight and powerful UI rendering engine without dependencies and written in TypeScript (Browser, Node.js, Android, iOS, Windows, Linux, macOS)

11 lines (10 loc) 563 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.detectIsFragment = exports.Fragment = void 0; const component_1 = require('../component'); const $$fragment = Symbol('fragment'); const Fragment = (0, component_1.component)(({ slot }) => slot || null, { token: $$fragment, displayName: 'Fragment' }); exports.Fragment = Fragment; const detectIsFragment = instance => (0, component_1.detectIsComponent)(instance) && instance.token === $$fragment; exports.detectIsFragment = detectIsFragment; //# sourceMappingURL=fragment.js.map