d0p3t / fivem-js

Javascript and Typescript wrapper for the FiveM natives API
https://d0p3t.nl
Other
143 stars 57 forks source link

Fix a bug caused by tree shaking #60

Open Dreaming-Codes opened 3 years ago

Dreaming-Codes commented 3 years ago

The tree shaking causes a bug that gives problems to all the files inside the models folder. It would be better to find a fix but until we understand the problem it is better to exclude thems

image as soon as the script is started

Dreaming-Codes commented 3 years ago

Okay, I investigated and it's not a problem to use this pull solution because it just tells the compiler that it can't skip those files but will still check them for unused code.