colyseus / colyseus-construct3

⚔ Colyseus Multiplayer SDK for Construct 3
https://docs.colyseus.io/getting-started/construct3-client/
MIT License
22 stars 12 forks source link

can't minify c3 project because of Colyseus addon #30

Closed F3der1co closed 3 months ago

F3der1co commented 3 months ago

To reproduce: export a project that has colyseus added with minification. Error message: working/810799356/scripts/c3runtime.js:8929:47: ERROR - [JSC_REASSIGNED_CONSTANT] Constant reassigned: i 8929| for (const i = 0; i < segments.length; i++) {

This seems to be line 16 in conditions.js:

image I assume changing the const to let should fix it.

endel commented 3 months ago

Hi @F3der1co, thank you for the feedback - can you please try version 0.15.0.14 that I just released? 🙏

F3der1co commented 3 months ago

Minification works now, thanks a lot for the quick fix!