Open snuggs opened 4 years ago
Anybody? /cc @mourner
@Rich-Harris what's good homie! Long time! I know you recently stepped down from project. But I swear I remember us working on this almost a couple years ago. I would try to fix it myself if I had clear direction of acorn
etc. But now have people bugging me about this issue in a library I maintain that depends upon this package. Just let me know next step. Would hate to have to switch to babel
. I'm loyal and would rather fix this. 💪
Thank you and PEACE! 🙏
I could have sworn this was addressed last year. Actually have been waiting for this to sort out for a couple years now. Am patient as the
acorn
library is still a mystery to me or I would submit a PR (not an issue).We need to create a thunk and assign to a constant. This is used later with the
Class Mixin
pattern.with
0.19.6
we could bypass by wrapping class in parenthesis(class extends Bar {})
However, upgrading to 0.19.8 issued the following malformed code![Capture d’écran 2020-02-14 à 14 03 56](https://user-images.githubusercontent.com/38223/74559682-f8d6b080-4f32-11ea-9da4-c4134fc5158f.png)
Attempted on https://buble.surge.sh site but gives yet another permutation of broken code.
repro: https://buble.surge.sh/#const%20Foo%20%3D%20Bar%20%3D%3E%20class%20extends%20Bar%20%7B%7D![Capture d’écran 2020-02-14 à 14 07 31](https://user-images.githubusercontent.com/38223/74559893-6551af80-4f33-11ea-8d76-38da28bfa567.png)
Please let me know if I am doing something wrong. Or where I can help. My only caveat is a lack of knowledge on the innards of
acorn
.Thanks in advance!