FiveM - esbuild

FiveM - esbuild

Builds resources with esbuild. It does not replace resources using Webpack (example: chat). needs yarn to install the necessary dependencies. Esbuild can work in perfect harmony with webpack. To learn more: https://esbuild.github.io/

How to use

  • Create an server.config.js, client.config.js or the name you prefer and change the values.
module.exports = {
    entryPoints: ['main.ts'],
    bundle: true,
    outfile: 'dist/client.js',
};
  • And on your fxmanifest.lua file, add this line of code.
esbuild_config 'server.config.js'

Useful link

Code is accessible Yes
Lines 177
Requirements yarn
Support Yes
3 Likes