12345678910111213141516171819 |
- // src/index.ts
- var scope = (() => {
- let win;
- if (typeof window !== "undefined") {
- win = window;
- } else if (typeof globalThis !== "undefined") {
- win = globalThis;
- } else if (typeof global !== "undefined") {
- win = global;
- } else if (typeof self !== "undefined") {
- win = self;
- } else {
- win = {};
- }
- return win;
- })();
- export {
- scope as global
- };
|