colyseus/colyseus-construct3

can't minify c3 project because of Colyseus addon

F3der1co opened this issue · 2 comments

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.

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

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