Skip to content

Esbuild plugin for WorkTank which enables you to execute whole files in a worker pool, transparently.

License

Notifications You must be signed in to change notification settings

fabiospampinato/worktank-esbuild-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WorkTank Esbuild Plugin

Esbuild plugin for WorkTank which enables you to execute whole files in a worker pool, transparently.

Install

npm install --save worktank-esbuild-plugin

Usage

For more information read this.

import esbuild from 'esbuild';
import worktank from 'worktank-esbuild-plugin';

esbuild.build ({
  bundle: true,
  minify: true,
  format: 'esm',
  platform: 'node',
  target: 'es2018',
  entryPoints: ['index.ts'],
  outdir: 'dist',
  plugins: [
    worktank ({
      filter: /\.worker\.(js|ts)$/ // Files matching this regex will be processed
    })
  ]
});

License

MIT © Fabio Spampinato

About

Esbuild plugin for WorkTank which enables you to execute whole files in a worker pool, transparently.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published