You do the indenting with tabs and the layout with spaces. Then it doesn't break
It's just more work and to do it reliably requires making tabs visible in the editor though, which is another mark against tabs for many, I'd imagine.
I suppose there may be Vim/Emacs realignment macros that take care of it but then we're heading toward the other classic argument.
Here's what it should look like (if you really want to go full-alignment):
class Demo {
\tfunction thing() {
\t\tlet height = 123;
\t\tlet width = 456;
\t\tlet title = "Foo";
\t\tlet description = "Foo bar baz";
\t}
}