worktank-esbuild-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i worktank-esbuild-plugin

Weekly Downloads

1

Version

1.1.2

License

none

Unpacked Size

12.9 kB

Total Files

12

Last publish

Collaborators

  • fabiospampinato