Closed lgarron closed 3 years ago
Here's the upstream issue for fixing this in Sucrase: alangpierce/sucrase#560
Fixed by #428
Fixed by #428
I gave wmr
another try, but it seems that private methods aren't working in wmr
3.1.1. But these were implemented by the same PR to sucrase
, which indicates to me they should be working. Am I missing something?
EDIT: now filed at https://github.com/preactjs/wmr/issues/708
If I modify the demo to do the following:
...this causes
Uncaught SyntaxError: Private field '#privateField' must be declared in an enclosing class
If I try to use it for an existing project:
...I get errors like:
The project in question has a recent enough TypeScript as a dependency, but I gather that
wmr
is using something else. I'd love to try outwmr
, but being able to use recent TypeScript without fuss is rather important. Is this something that is meant to be supported, and/or is there something simple I can do to enable it?