{"id":21889,"library":"rollup-config-badger-den","title":"rollup-config-badger-den","description":"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.","status":"active","version":"1.12.1","language":"javascript","source_language":"en","source_url":"https://github.com/trioderegion/rollup-config-badger-den","tags":["javascript","foundry vtt","fvtt","module","rollup","bundle","bundling"],"install":[{"cmd":"npm install rollup-config-badger-den","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-config-badger-den","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-config-badger-den","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; plugin requires Rollup >=4.46","package":"rollup","optional":false}],"imports":[{"note":"Default export is the plugin factory function.","wrong":"import { rollupConfigBadgerDen } from 'rollup-config-badger-den'","symbol":"default","correct":"import config from 'rollup-config-badger-den'"},{"note":"TypeScript users should import the type for config validation.","wrong":null,"symbol":"type DenConfigJSON","correct":"import type { DenConfigJSON } from 'rollup-config-badger-den'"},{"note":"ESM-only since v1. CommonJS require may fail.","wrong":"const generateConfig = require('rollup-config-badger-den').generateConfig","symbol":"generateConfig","correct":"import { generateConfig } from 'rollup-config-badger-den'"}],"quickstart":{"code":"// Install: npm install -D rollup-config-badger-den\n// Create src/my-module.bd.json\n// Example rollup.config.mjs:\nimport config from 'rollup-config-badger-den';\n\nexport default config({\n  denConfigFile: 'src/my-module.bd.json',\n  profile: 'dev',\n  // Additional options...\n});\n// Run: rollup -c node:rollup-config-badger-den --config-den src/my-module:dev","lang":"typescript","description":"Shows basic setup: install, config file, and rollup.config.js import with profile selection."},"warnings":[{"fix":"Use built-in watch mode and refresh browser manually for JS changes.","message":"JavaScript files are not compatible with FoundryVTT's default HMR; only a browser refresh will pick up JS changes.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Update config file to match DenConfigJSON schema; see documentation.","message":"Migration from v0.x to v1.0 changed the config file structure and removed compatibility with old bd.json format.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Rename 'styles' to 'style' in your .bd.json file.","message":"The 'styles' property in den config is deprecated; use 'style' instead.","severity":"deprecated","affected_versions":">=1.5.0 <1.8.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install rollup latest: npm install -D rollup@latest","cause":"Missing peer dependency or incorrect version of rollup (requires >=4.46).","error":"Error: Cannot find module 'rollup-config-badger-den'"},{"fix":"Rename config file to end with .bd.json, e.g., my-module.bd.json","cause":"Config file does not end with .bd.json or name is incorrect.","error":"Error: Invalid configuration file. Must have '.bd.json' extension."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}