Open kirylkastko opened 8 years ago
I did some debugging and it seems it's a bug from escodegen
dependency.
The only thing we can do while waiting for it to be fixed, is to add a command line switch that turns off comments.
Any thoughts?
Hi @nippur72 ,
Thank you for your investigation. I don't need comment in compiled code, so this solution works for me.
I've submitted a PR for this. Comments are simply turned off if output is ES6.
I've avoided the command line switch because it's likely we won't need it once the bug is fixed on the dependency.
If you need this feature before it's merged (which mike take a while) you can use install from my fork where I have all the unmerged PRs:
npm install git://github.com/nippur72/react-templates.git#gh-pages
@nippur72 Thank you!
If there html comments in
.rt
files, I always get an error:error Unknown node type ExportDefaultDeclaration