Skip to content

Conversation

@christianalfoni
Copy link

node-jsx works great! The only problem is when you have a big dependency tree where just a fraction of the files actually contain JSX.

By defining paths...

var path = require('path');
require('node-jsx').install({
  paths: [path.resolve(__dirname, 'app')]
});

...only files in those directories and subdirectories will be transformed. This saves a lot of time when running tests or rendering isomorphic react.

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

Successfully merging this pull request may close these issues.

1 participant