A URL inside a string
- Input
- const url = "https://example.com/api";
- Output
- const url="https://example.com/api";
A regex-based minifier treats the double slash as the start of a comment and deletes the rest of the line, producing an unterminated string. Tracking string context avoids that entirely.