Download frontend/node_modules/vite/dist/client/env.mjs from blackmistcode/polysignal_hackaton: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/blackmistcode/polysignal_hackaton/resolve/main/frontend/node_modules/vite/dist/client/env.mjs
- Command line
-
hf download hf://blackmistcode/polysignal_hackaton/frontend/node_modules/vite/dist/client/env.mjs
-
curl -L -o env.mjs https://huggingface.co/blackmistcode/polysignal_hackaton/resolve/main/frontend/node_modules/vite/dist/client/env.mjs
612 Bytes
| //#region src/client/env.ts | |
| const context = (() => { | |
| if (typeof globalThis !== "undefined") return globalThis; | |
| else if (typeof self !== "undefined") return self; | |
| else if (typeof window !== "undefined") return window; | |
| else return Function("return this")(); | |
| })(); | |
| const defines = __DEFINES__; | |
| Object.keys(defines).forEach((key) => { | |
| const segments = key.split("."); | |
| let target = context; | |
| for (let i = 0; i < segments.length; i++) { | |
| const segment = segments[i]; | |
| if (i === segments.length - 1) target[segment] = defines[key]; | |
| else target = target[segment] || (target[segment] = {}); | |
| } | |
| }); | |
| //#endregion | |