{"id":22440,"library":"taskr-rollup","title":"taskr-rollup","description":"Rollup plugin for Taskr (v1.0.0, last released in 2019). Enables Rollup bundling inside Taskr task pipelines. Requires Taskr ^1.1.0 and Rollup 1.x. Aims to provide a simple API for Rollup integration within Taskr's generator-based flow. No active development; last commit years ago. Alternatives include using Rollup standalone or with other build tools.","status":"maintenance","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/caseyWebb/taskr-rollup","tags":["javascript","taskr","taskr-plugin","rollup"],"install":[{"cmd":"npm install taskr-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add taskr-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add taskr-rollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: Taskr runtime required to run tasks","package":"taskr","optional":false},{"reason":"Peer dependency: Rollup bundler required for rollup plugin","package":"rollup","optional":false}],"imports":[{"note":"Used as a Taskr plugin, not directly imported in scripts.","wrong":"const rollup = require('taskr-rollup')","symbol":"taskr-rollup","correct":"plugins: [require('taskr-rollup')()]"},{"note":"Rollup is used via .rollup() method, not directly imported in task files.","wrong":"import rollup from 'rollup'; // ESM not supported in taskr-rollup context","symbol":"rollup","correct":"const rollup = require('rollup');"},{"note":"Taskr itself uses CJS; generator functions required.","wrong":"import taskr from 'taskr'; // CJS only","symbol":"taskr","correct":"const taskr = require('taskr');"}],"quickstart":{"code":"// Taskfile.js\nexports.default = function* (task) {\n  yield task\n    .source('src/main.js')\n    .rollup({\n      output: { file: 'dist/bundle.js', format: 'cjs' },\n      plugins: []\n    })\n    .target('dist');\n};","lang":"javascript","description":"Basic Taskr task that bundles src/main.js with Rollup and outputs to dist/bundle.js."},"warnings":[{"fix":"Use Rollup 1.x or migrate to another Rollup integration (e.g., directly use rollup or gulp-rollup).","message":"Rollup 1.x only; incompatible with Rollup >=2.x","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Use function* (yield) instead of async/await.","message":"Generator function required; task must be a generator","severity":"gotcha","affected_versions":"*"},{"fix":"Do not pass 'input' in .rollup() options; use .source() to set entry.","message":"Options 'input' is not supported; use .source() instead","severity":"gotcha","affected_versions":"*"},{"fix":"Upgrade taskr to >=1.1.0 and <2.0.0.","message":"Peer dependency taskr must be ^1.1.0; older versions incompatible","severity":"breaking","affected_versions":"<1.1.0"},{"fix":"Use Rollup 1.x (e.g., `npm install rollup@1.0.0`).","message":"Peer dependency rollup must be 1.x; version 0.x incompatible","severity":"breaking","affected_versions":"<1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install rollup@1.x as a dev dependency: npm install rollup@1.0.0","cause":"Rollup peer dependency not installed or incorrect version","error":"Error: Cannot find module 'rollup'"},{"fix":"Ensure taskr >=1.1.0 and require('taskr-rollup') is called as a function in the plugins list.","cause":"Taskr version <1.1.0 or plugin not loaded correctly","error":"TypeError: task.source(...).rollup is not a function"},{"fix":"Add output object: .rollup({ output: { file: 'bundle.js', format: 'cjs' } })","cause":"Missing 'output' in .rollup() options","error":"RollupError: You must specify an 'output' option"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}