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.jsor the name you prefer and change the values.
module.exports = {
entryPoints: ['main.ts'],
bundle: true,
outfile: 'dist/client.js',
};- And on your
fxmanifest.luafile, add this line of code.
esbuild_config 'server.config.js'