A plugin that allows you to import alt:V clientside workers like regular JS/TS modules. See example
- Install as npm package
yarn add altv-esbuild-client-worker
npm i altv-esbuild-client-worker
- Add it into your esbuild config
import { altvClientWorker } from "altv-esbuild-client-worker"
esbuild.build({
plugins: [altvClientWorker()]
})