You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I just stumbled on a variation of this surprising-to-me behaviour.
As a worksaround, it's possible to do what I do in the second ('works'): Replace \${hi} with ${'${hi}'}. That way, dedent only sees a string literal and doesn't have to care about escaping.
I figured I'd share in case anyone else comes here looking for answers 😄
(For people stumbling upon this issue: https://github.com/MartinKolarik/dedent-js might work better for you.)
The text was updated successfully, but these errors were encountered: