1.1.2 • Published 1 month ago

worktank-esbuild-plugin v1.1.2

Weekly downloads
-
License
-
Repository
github
Last release
1 month ago

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

1.1.1

1 month ago

1.1.2

1 month ago

1.1.0

1 year ago

1.0.0

2 years ago