Registry / devops / taskr-esbuild

taskr-esbuild

JSON →
library1.0.6jsnpmunverified

Esbuild plugin for Taskr, a tiny build tool. Current stable version is 1.0.6 with no active development (last release in 2020). It allows using esbuild as a Taskr plugin, supporting Vue 3, React, and Preact, with basic CSS/Sass/Less/Stylus imports and image/JSON imports. Differentiator: part of the minimal Taskr ecosystem (7MB node_modules), but esbuild has since evolved and the plugin may lag behind. No known release cadence.

npm install taskr-esbuild
INSTALL
IMPORT
SIG · TASKR-ESBUILD
T
taskr-esbuild
devopsjavascriptv1.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

taskr-esbuild
import 'taskr-esbuild' // just install; plugin is auto-loaded by Taskr
const esbuildTask = require('taskr-esbuild') // will not work; Taskr expects the plugin to be registered via package name
Plugin is used by Taskr automatically once installed; no explicit import needed in taskfile.

Shows how to define a Taskr task that uses the esbuild plugin to transpile JavaScript files.

// taskfile.js module.exports = function (task) { task('esbuild', function * () { yield task.source('src/**/*.js').esbuild().target('dist/js'); }); };
taskr --version
Debug
Known issues
breakingNode.js >= 10.0 required due to reliance on older Taskr version.
fix
Upgrade Node.js to >=10.0.
affects: <10.0
gotchaPlugin is not actively maintained; last updated in 2020. May not work with latest esbuild versions.
fix
Pin esbuild to a compatible version (e.g., around 0.9.x) if using this plugin.
affects: *
gotchaDoes not support .vue single-file components; only supports JavaScript JSX with Vue 3.
fix
Use a separate Vue plugin for .vue files.
affects: *
deprecatedTaskr itself is in maintenance mode; consider switching to modern build tools.
fix
Migrate to esbuild directly or use esbuild with other task runners.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'taskr-esbuild'
Package not installed or peer dependencies missing.
fix
Install package and its peers: npm install --save-dev taskr-esbuild taskr esbuild
TypeError: task.source(...).esbuild is not a function
Plugin not registered or wrong version of Taskr.
fix
Ensure you have a taskr.config.js that exports a function (or use taskfile.js) and that the plugin is installed correctly.
Upgrade
Version history
1.0.6latest on npm
Audit
Dependencies
taskrrequiredpeer dependency; requires Taskr as the build orchestrator
esbuildrequiredpeer dependency; esbuild is the core bundler/transpiler
Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
taskr-esbuild — npm install taskr-esbuild · libregistry