UNPKG

@thewtex/vtk.js-esm

Version:

Visualization Toolkit for the Web

23 lines (20 loc) 787 B
import { d as defineProperties_1 } from '../define-properties/index.js'; import { p as polyfill } from './polyfill.js'; var shim = function shimGlobal() { var polyfill$1 = polyfill(); if (defineProperties_1.supportsDescriptors) { var descriptor = Object.getOwnPropertyDescriptor(polyfill$1, 'globalThis'); if (!descriptor || (descriptor.configurable && (descriptor.enumerable || descriptor.writable || globalThis !== polyfill$1))) { // eslint-disable-line max-len Object.defineProperty(polyfill$1, 'globalThis', { configurable: true, enumerable: false, value: polyfill$1, writable: false }); } } else if (typeof globalThis !== 'object' || globalThis !== polyfill$1) { polyfill$1.globalThis = polyfill$1; } return polyfill$1; }; export { shim as s };