Problem: Client-side exports are not accessible when using format: 'iife'. The bundle doesn't expose named exports to the global exports object that FiveM relies on.
Expected: Client bundle should output named exports to global exports object.
Workaround: Using format: 'cjs' instead works.
Problem: Client-side exports are not accessible when using
format: 'iife'. The bundle doesn't expose named exports to the globalexportsobject that FiveM relies on.Expected: Client bundle should output named exports to global
exportsobject.Workaround: Using
format: 'cjs'instead works.