I confirmed that these spaces are truly stripped when used in a component. Could you explain your use case for needing the extra spaces? With your input we can file a feature request ticket to add an option which prevents the stripping of additional spaces!
The <pre> HTML element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or monospaced, font. Whitespace inside this element is displayed as written.