-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not support tsx? #140
Comments
@wuguojun1006 the current workaround is to add a side effect that uses every import. Something as simple and ugly as: import x; x If I remember correctly, the problem is that tsc strips unused variables before the pug is transformed. There are other issues here that have more explanation and discussion. You can search to find more infos. Im about to start a library like this, but with the lit approach, so that tsc works the way we need. I’ll ping you when it’s up. |
@skotchpine I'm happy to see that you are working on a separate solution similar to this. I'd also be happy to participate in any discussions or contribute to the solution. I also think of refactoring this library, however I don't have many ideas to make it work with tsc, so it would be great tto collaborate on that :). |
This should be in the documentation. Being ugly is no excuse for hiding a crucial workaround in the GitHub issues. Check out |
why?????
The text was updated successfully, but these errors were encountered: