A simple bundler for BetterDiscord plugins that supports TypeScript, JSX, CSS, CSS preprocessors, and more. Current stable version 5.1.4. Bundles plugins composed of multiple files/modules into a single plugin file, emitting readable code for reviews and debugging. Differentiators: focused specifically on BetterDiscord ecosystem, minimal configuration, and emphasis on output readability.
npm install bundlebdNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: import the default bundler, configure entry/output, and run.
Use async/await or .then() instead of passing callbacks to bundlebd().
Ensure output path ends with '.plugin.js' (or '.plugin.json' for library format).
Set 'declaration: true' in tsconfig.json and use a .ts entry file.
Use 'styles: true' instead of 'css: true' in options.
Add the JSX pragma comment to your entry file or configure 'jsxFactory' in options.
Run 'npm i bundlebd -D' and use 'import bundlebd from "bundlebd"'.
Use 'import bundlebd from "bundlebd"' (not 'import { bundlebd } from "bundlebd"').Set output to end with '.plugin.js' (e.g., 'dist/myPlugin.plugin.js').
No dependency data recorded yet.