Closed aspiers closed 4 years ago
Thanks, I don't recall either exactly why it uses eval-when-compile
. I suspect the idea was that prettier.el
is always the current file at compile time, which seems to be a bad assumption.
This is only for use in prettier-info
; looking at it now, perhaps it should be a function rather than a constant as it will be needed only rarely.
Please feel free to refactor this more fundamentally. Also, just a heads up that linting seems to fail for some reason if you hadn't seen.
OK, how's this now?
Thank you!
Fixes #18.
I hope this is right but to be honest I'm not entirely sure why this is wrapped in
eval-when-compile
, so I'd appreciate a sanity check!