A configurable Rollup plugin for bundling FoundryVTT (FVTT) modules. Current stable version 1.12.1. It supports multiple build profiles (debug, test, release), auto-discovery via glob, stylesheet bundling (Sass, Less, CSS), compendium extraction/compilation, external module inclusion, and distribution package creation (zip + manifest). Released under the MIT license with occasional updates. Key differentiator vs generic Rollup configs: it is purpose-built for FVTT module development with HMR support, profile-based builds, and automatic manifest generation.
npm install rollup-config-badger-denVerified import paths — ran on the pinned version, not inferred.
Shows basic setup: install, config file, and rollup.config.js import with profile selection.
Use built-in watch mode and refresh browser manually for JS changes.
Update config file to match DenConfigJSON schema; see documentation.
Rename 'styles' to 'style' in your .bd.json file.
Install rollup latest: npm install -D rollup@latest
Rename config file to end with .bd.json, e.g., my-module.bd.json