INDEX.JS(1)
β¨ NAME β¨
index.js β a simple bundler for your delicious modules π (yes bestie, delicious, the manpage said it, I'm just the messenger)
π DESCRIPTION π
okay so listen. this is a bundler. it bundles. it's giving minimal, it's giving cozy, it's giving "why is my build tool 400 megabytes." you point it at an entry file, it does its lil thing, and your modules come out the other side all bundled and gorgeous. π¦
πΈ Usage πΈ
$ bundt [entry] [options]
π Config π
If no [entry] was provided, then src/index.js is used. no entry? no problem, it just assumes that one. periodt.
Configuration lives within your package.json file as these keys:
"main"β the output path for your CommonJS file (default:dist/browserify-lite.js)"module"β the output path for your ES Module file β not built if undefined"unpkg"or"umd:main"β the output path for your UMD file β not built if undefined"browser"β the output path for your browser-specific entrypoint β not built if undefined"umd:name"β the name of your UMD factory (default:"browserify-lite")"modes"β a mapping of custom mode names to their entries"terser"β a config object to customize Terser behavior
You may use a .terserrc file to store configuration instead of the "terser" key. lowkey the tidier option if you ask me, but do you boo π«Ά
π Options π
All files are built unless 1+ limits are defined. (read that again, bestie β it's the whole vibe check of this tool. define zero limits and it builds everything. define one and it goes "okay noted, only that then.")
--mainβ Builds the"main"file--unpkgβ Builds the"unpkg"or"umd:main"file--moduleβ Builds the"module"file--browserβ Builds the"browser"file--minifyβ Minify all file formats--help,-hβ Displays this message
π Examples π
$ bundt
$ bundt lib/index.js
$ bundt src/browser.js --browser --unpkg
and that's the whole page, no cap. index.js 1.1.5, September 2022 β literally iconic of it. go bundle something cute, bestie πβ¨
π¦ where this page comes from
- debian bookworm: node-browserify-lite 0.5.1+~cs7.1.5-5 Β· MIT
- debian trixie: node-browserify-lite 0.5.1+~cs7.1.5-5 Β· MIT
- ubuntu noble: node-browserify-lite 0.5.1+~cs7.1.5-5 Β· MIT
- ubuntu resolute: node-browserify-lite 0.5.1+~cs7.1.5-5 Β· MIT
- ubuntu stonking: node-browserify-lite 0.5.1+~cs7.1.5-5 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms