No description provided.
If the component file has `\n` at its last line, the while loop runs endlessly. It happens because the current `parseFragments()` running while `i < content.length`, but since it's reading it's index `content[content.length]` will always be `undefined`. and if the last character is `\n` so it ends up in the `parseText()` with `readWhileMatching(/[^<{]/)` and `/[^<{]/.test(undefined)` returns `true` which makes the loop run endlessly. so to use `parseFragments(() => i < content.length - 1);` makes more sense because `content[content.length - 1]` is the last character of the string I found this because I use prettier, and when you format the file it's adding `\n` at the end.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by lacherogwu and has received 2 comments.