Breaking on packages that use `TSFoster/elm-sha1`
bengolds opened this issue · comments
bengolds commented
If you try to use functions from TSFoster/elm-sha1
, elm-optimize-level-2
will crash with a semi-cryptic error.
It appears that the regex inside of inlineWrappedFunctions
is getting a false-positive on the A1
in $TSFoster$elm_sha1$SHA1$loophelp
.
Making the regex a bit more specific should fix the issue.
Simon commented
Thank you so much for reporting and digging in, I will try to take a look asap!
Matthew Griffith commented
Published as 0.1.4 🎉
bengolds commented
🚀 ✨ Fantastic! Thanks for the fix.