Skip to content

Instantly share code, notes, and snippets.

View xHyroM's full-sized avatar
🎨
Make this day fun, as it's the canvas of life you're painting

Jozef Steinhübl xHyroM

🎨
Make this day fun, as it's the canvas of life you're painting
View GitHub Profile
@LowByteFox
LowByteFox / index.ts
Created April 7, 2023 08:46
Bun bun bundling files and being node_modulesless
// code extracted from https://github.com/Fire-The-Fox/buchta/blob/master/src/bundler.ts
// Show it some ❤️ by giving it a ⭐
import { spawnSync } from "bun";
import { existsSync, readFileSync, unlinkSync, writeFileSync } from "fs";
import { dirname, relative } from "path";
// run as bun ./index.ts a.ts b.ts ...
const a = process.argv
a.shift()
a.shift()