Prettier crashes on cells with lots of data

example:

points = [[7.7064377815,48.5331765019], … [7.756192,48.57967]]

(about 39kb of text, which I can’t and wouldn’t paste here)

Can get around the problem with
points = JSON.parse("[[7.7064377815,48.5331765019], … [7.756192,48.57967]]")

Thanks - yep, we’re chasing down some pretty dire performance hiccups in prettier. Here’s the related issue I just filed, it seems to come down to either an inefficient diff or too many temporary objects created: https://github.com/prettier/prettier/issues/4801

1 Like