Registry / devops / esbuild-plugin-checker

esbuild-plugin-checker

JSON →
library0.1.2jsnpmunverified

TypeScript checker plugin for esbuild that runs tsc diagnostics during bundling. Version 0.1.2 requires esbuild ^0.14.11 and TypeScript ^4.5.4. Unlike esbuild's built-in type stripping, this plugin performs full type checking and reports errors via esbuild's logging. Designed for projects using esbuild with TypeScript, it integrates type checking into the build pipeline without needing a separate tsc watch process.

npm install esbuild-plugin-checker
INSTALL
IMPORT
SIG · ESBUILD-PLUGIN-CHE
E
esbuild-plugin-checker
devopsjavascriptv0.1.2
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.

checkerPlugin
import { checkerPlugin } from 'esbuild-plugin-checker'
const checkerPlugin = require('esbuild-plugin-checker').checkerPlugin
ESM-only since v0.1.0
default
import checkerPlugin from 'esbuild-plugin-checker'
const checkerPlugin = require('esbuild-plugin-checker')
Default export is identical to named export
CheckerPluginOptions
import type { CheckerPluginOptions } from 'esbuild-plugin-checker'
TypeScript users: import type for options interface

Shows basic usage integrating checkerPlugin with esbuild build, including optional tsconfig path.

import { build } from 'esbuild'; import { checkerPlugin } from 'esbuild-plugin-checker'; await build({ entryPoints: ['src/index.ts'], outfile: 'dist/bundle.js', bundle: true, plugins: [ checkerPlugin({ // Optional: pass tsc options typescript: { tsconfig: './tsconfig.json', }, }), ], }).catch(() => process.exit(1));
Debug
Known issues
breakingThe plugin requires esbuild ^0.14.11. Older esbuild versions lack plugin API support.
fix
Update esbuild to version ^0.14.11 or later.
affects: <=0.14.10
breakingThe plugin requires TypeScript ^4.5.4. Older TypeScript versions may cause unexpected errors.
fix
Update TypeScript to ^4.5.4 or later.
affects: <=4.5.3
gotchaType checking is incremental per build; errors may only appear after first build if cache is stale.
fix
Run with --force option to clear TypeScript incremental cache.
affects: >=0.0.0
gotchaPlugin does not support watch mode automatic recheck; manual rebuild triggers new check.
fix
Use esbuild's watch mode combined with onRebuild callback to recheck.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'esbuild-plugin-checker'
Package not installed or resolution fails
fix
Run: pnpm add -D esbuild-plugin-checker (requires PNPM)
TypeError: checkerPlugin is not a function
Incorrect import: using default export incorrectly
fix
Use named import: import { checkerPlugin } from 'esbuild-plugin-checker'
Error: esbuild version mismatch: expected ^0.14.11, got 0.13.x
Installed esbuild version is too old
fix
Update esbuild to ^0.14.11: pnpm add esbuild@^0.14.11
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies
esbuildrequiredpeer dependency: esbuild plugin interface v0.14+
typescriptrequiredpeer dependency: uses TypeScript compiler for diagnostics
Agent activity
4 hits · last 30 days
node
4
Resources
esbuild-plugin-checker — npm install esbuild-plugin-checker · libregistry