Skip to content
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

Make .jsx the default extension #18

Open
hoppula opened this issue Oct 2, 2014 · 1 comment
Open

Make .jsx the default extension #18

hoppula opened this issue Oct 2, 2014 · 1 comment

Comments

@hoppula
Copy link

hoppula commented Oct 2, 2014

I was debugging why my node.js app took several seconds to boot and finally found the culprit to be that having:

    require('node-jsx').install();

as first line of the app made all the subsequent require calls to go through React.transform.
My app starts now almost immediately after changing my React components to use .jsx extension and memory usage is 1/3 of original :)

README could possibly warn about this or .jsx could be set as default extension to prevent similar cases.

@Josh-a-e
Copy link

bump - I think this is a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants