In ReScript lists are compiled as a nested data structure, resulting in a very deep data structure. In large files this causes babel to stack overflow. With this change, the points are saved as an array, which is represented as a simple JavaScript array.
In ReScript lists are compiled as a nested data structure, resulting in a very deep data structure. In large files this causes babel to stack overflow. With this change, the points are saved as an array, which is represented as a simple JavaScript array.