altv-esbuild-client-worker

A plugin that allows you to import alt:V clientside workers like regular JS/TS modules. See example

Installation

  1. Install as npm package

yarn add altv-esbuild-client-worker

npm i altv-esbuild-client-worker

  1. Add it into your esbuild config
import { altvClientWorker } from "altv-esbuild-client-worker"

esbuild.build({
  plugins: [altvClientWorker()]
})