Skip to content

Vite 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-vite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WorkTank Vite Plugin

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

For more information read the readme for worktank-esbuild-plugin.

Install

npm install worktank-vite-plugin

Usage

Let's configure the bundler, mainly we need to tell the "worktank" plugin which files to process:

import {defineConfig} from 'vite';
import worktank from 'worktank-vite-plugin';

export default defineConfig ({
  plugins: [
    worktank ({
      filter: /\.worker\.(js|ts)$/ // Files matching this regex will be processed
    })
  ]
});

License

MIT © Fabio Spampinato

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published