JShrink: RuntimeException in version 1.6.x
Just updated to version 1.6.
Shrinking several libraries now breaks with Error: Unclosed string at position: or Error: Unclosed regex pattern at position.
One example is jquery-ui.js (see https://pastebin.com/NwEXPtAb): breaks e.g. on line 12958
I added $this->echo('|error|'); before throw new \RuntimeException('Unclosed regex pattern at position: ' . $this->index); and removed the exception to get an idea where the error occurs. See https://pastebin.com/AX1XFgS3 (starts on line 1074).
Thanks for help!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- Fix bug in keyword detections Resolves #123 — committed to tedious/JShrink by tedivm a year ago
- Better Keyword Support and Testing closes #123 — committed to tedious/JShrink by tedivm a year ago
I confirm, Static Content Deploy for Magento works fine, with no issues on latest JShrink Thank you!
Thanks for narrowing it down- honestly that is the hardest part of a lot of these bugs, just figuring out where it’s breaking. Looking at the line in question I’ve got a good idea of what’s happening, so once I’m done with work today I should be able to tackle it.