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
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.
The text was updated successfully, but these errors were encountered:
I was debugging why my node.js app took several seconds to boot and finally found the culprit to be that having:
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.
The text was updated successfully, but these errors were encountered: