You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2022. It is now read-only.
If nativejsx encounters a source code file where there is no JSX (which is the majority of files in my 200 KLOC project), it still passes the file through its parser and code generator, which results in comments being removed and string quote style being changed.
What I'd like to see, ideally:
Comments to be retained everywhere. It's the minifier's job to remove them at a later stage in non-debug builds. As far as I understand, these instructions need to be followed to achieve this: https://github.com/ternjs/acorn#note-on-using-with-escodegen
Files to be kept completely intact if there is no JSX in them.
If nativejsx encounters a source code file where there is no JSX (which is the majority of files in my 200 KLOC project), it still passes the file through its parser and code generator, which results in comments being removed and string quote style being changed.
What I'd like to see, ideally:
Comments to be retained everywhere. It's the minifier's job to remove them at a later stage in non-debug builds. As far as I understand, these instructions need to be followed to achieve this: https://github.com/ternjs/acorn#note-on-using-with-escodegen
Files to be kept completely intact if there is no JSX in them.
Thanks for all your hard work.