Closed stiboost closed 9 months ago
Interesting. This naive issue could be fixed by adjusting the regex that looks for the script tag. I can look at it when I return after Sept. 8. A reproduction repo would be appreciated, as I don't use React.
Closed, no reproduction.
Testing this with a React application.
There's the following line in the built HTML which breaks the page:
The part with
e.innerHTML="<script></script>"
breaks the page and the rest of the javascript is rendered as text on the page.I've checked the application code and I don't do this anywhere.
Only code that is similar is this little snippet:
Is this some optimization vite does, that it changes
createElement
calls into innerHTML?