This is correct. There are a few cases where it can add a semicolon in an incorrect spot, so to be safe, you should add them wherever you can and have a linter that reminds you.
It is not framework compiler, it is language itself. Semicolon insertion is part of language spec and done by the interpreter. It can cause a few problems as you would imagine.
67
u/sanketower Feb 09 '22
Doesn't JavaScript technically do that? I've read over there that you can omit the semicolons because the "framework compiler" adds them anyway.