{"library":"fivem-bundler","type":"library","category":null,"description":"fivem-bundler is a build-time compiler designed for FiveM Lua resources, currently at version 1.1.2. It analyzes `client/` and `server/` directories, resolving standard Lua `require()` and `ox_lib.require()` calls through Abstract Syntax Tree (AST) analysis. The primary function is to consolidate multiple Lua files into single-file bundles for both client and server runtimes, injecting all modules into Lua's `package.preload`. This approach optimizes resource loading and simplifies deployment for FiveM servers. Key differentiators include its automatic detection of resource structure (directory or fxmanifest.lua driven), explicit support for `ox_lib` semantics, and a 'lazy' bundling feature for modules that should be available on-demand but not auto-executed. While a specific release cadence isn't published, the `1.x.x` versioning suggests ongoing, active development. It requires Node.js >=18.0.0 to run.","language":"javascript","status":"active","version":"1.1.2","tags":["javascript","fivem","lua","bundler","ox_lib","compiler","fxserver"],"last_verified":"Wed May 27","install":[{"cmd":"npm install fivem-bundler","imports":["fivem-bundler <resource-root> [output-dir]","npx fivem-bundler ./my-resource","fivem-bundler ./my-resource --lazy \"server/frameworks/**\" --lazy \"client/legacy.lua\""]},{"cmd":"yarn add fivem-bundler","imports":[]},{"cmd":"pnpm add fivem-bundler","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/fivem-bundler","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/fivem-bundler/compatibility"}}