rollup-shader-chunks
JSON →A Rollup plugin for optimising inline GLSL shaders in JavaScript or TypeScript files. Current stable version is 1.5.2, with a moderate release cadence. It processes template literals marked with a GLSL hint (e.g., `/* glsl */`), enabling shader minification and injection of uniform/attribute definitions directly in your bundle. Unlike generic GLSL loaders, this plugin focuses on inline shader strings within existing JS files, integrating seamlessly with Rollup's build pipeline. It supports Rollup 3 and 4, requiring Node.js ^20.19.0, ^22.21.0, or >=24.12.0. The plugin is configurable via include/exclude globs and an enabled flag.
Traffic · last 30 days ↓50% vs prev 7d
total hits 11
actors 4 distinct systems
last hit 7d ago human
top countries 🇺🇸 United States · 🇨🇦 Canada · BD
Resources
API endpoints
full doc /v1/registry/rollup-shader-chunks