function formatFrameForVite(frame) {
	if (!frame) {
		return '';
	}
	return frame
		.split('\n')
		.map((line) => (line.match(/^\s+\^/) ? '   ' + line : ' ' + line.replace(':', ' | ')))
		.join('\n');
}
vite error overlay expects a specific format to show frames
this reformats svelte frame (colon separated, less whitespace)
to one that vite displays on overlay ( pipe separated, more whitespace)
e.g.
```
1: foo
2: bar;
      ^
3: baz
```
to
```
 1 | foo
 2 | bar;
        ^
 3 | baz
```
@see https://github.com/vitejs/vite/blob/96591bf9989529de839ba89958755eafe4c445ae/packages/vite/src/client/overlay.ts#L116
@param {string} [frame]
@returns {string}