{"id":22205,"library":"rollup-plugin-riot","title":"rollup-plugin-riot","description":"Rollup plugin to compile Riot.js tag files during bundling. Current stable version is v10.0.0, requiring @riotjs/compiler >= v10 and Rollup v1+. Release cadence tied to Riot.js major versions: v10 supports Riot 10, v9 supports Riot 9, etc. Drops node <22. Key differentiators: seamless integration of Riot tags into Rollup pipeline, supports custom file extension, include/exclude patterns, and passes through compiler options. Default extension is '.riot'.","status":"active","version":"10.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/riot/rollup-plugin-riot","tags":["javascript","riot","rollup-plugin"],"install":[{"cmd":"npm install rollup-plugin-riot","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-riot","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-riot","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required to compile Riot tags (v10+ for rollup-plugin-riot v10)","package":"@riotjs/compiler","optional":false},{"reason":"peer dependency, requires Rollup v1.x or above","package":"rollup","optional":false}],"imports":[{"note":"ESM-only since v7. Use default import for the plugin function.","wrong":"const riot = require('rollup-plugin-riot')","symbol":"riot","correct":"import riot from 'rollup-plugin-riot'"}],"quickstart":{"code":"import riot from 'rollup-plugin-riot';\n\nexport default {\n  input: 'src/main.js',\n  output: {\n    file: 'dist/bundle.js',\n  },\n  plugins: [\n    riot({\n      ext: 'html',       // optional: file extension to process\n      include: ['**/*.riot'], // optional: minimatch pattern\n    }),\n  ],\n};","lang":"javascript","description":"Shows basic Rollup configuration using rollup-plugin-riot with a custom file extension and include pattern."},"warnings":[{"fix":"Update to Node >=22 and install @riotjs/compiler@^10.","message":"Version 10.0.0 drops support for Node <22 and requires @riotjs/compiler v10.","severity":"breaking","affected_versions":">=10.0.0"},{"fix":"Use Riot.js 6 compiler and update tag files accordingly.","message":"Version 6.0.0 updated to Riot.js 6 which is not compatible with Riot.js 5 tag syntax.","severity":"breaking","affected_versions":">=6.0.0 <7.0.0"},{"fix":"Use import syntax (ESM) instead of require().","message":"Version 7.0.0 switched to ESM-only, breaking CommonJS require usage.","severity":"breaking","affected_versions":">=7.0.0"},{"fix":"Upgrade to v10 and use @riotjs/compiler.","message":"Versions prior to v4 used riot-compiler as a peer dependency; now @riotjs/compiler is required.","severity":"deprecated","affected_versions":"<4.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"npm install @riotjs/compiler --save-dev","cause":"@riotjs/compiler not installed as a peer dependency.","error":"Error: Cannot find module '@riotjs/compiler'"},{"fix":"Change to import riot from 'rollup-plugin-riot'","cause":"Using require() on ESM-only version (v7+).","error":"TypeError: riot is not a function"},{"fix":"Update Rollup to v1 or higher: npm install rollup@latest --save-dev","cause":"Using an older version of Rollup.","error":"Error: The plugin 'rollup-plugin-riot' requires Rollup v1.x or above"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}