mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-28 08:22:24 +00:00
- Move from root publishing to clean `dist/` directory - Create `scripts/build-dist.mjs` to orchestrate build and copy assets - Update `package.json` build script - Update `netlify.toml` to publish `dist/` - Ignore `dist/` in `.gitignore` Co-authored-by: PR0M3TH3AN <[email protected]>
18 lines
411 B
JavaScript
18 lines
411 B
JavaScript
import { Buffer } from "https://cdn.jsdelivr.net/npm/[email protected]/+esm";
|
|
|
|
const globalScope = typeof globalThis !== "undefined" ? globalThis : window;
|
|
|
|
if (globalScope && !globalScope.Buffer) {
|
|
globalScope.Buffer = Buffer;
|
|
}
|
|
|
|
if (globalScope && !globalScope.global) {
|
|
globalScope.global = globalScope;
|
|
}
|
|
|
|
if (globalScope && !globalScope.process) {
|
|
globalScope.process = { env: {} };
|
|
}
|
|
|
|
export { Buffer };
|