I'm trying to programatically invoke the JSX transformer (using the version of react-tools in the npm registry) by running something like
require('react-tools').transform(someCode);
Which then throws this error:
Error: Cannot find module './build/React'
If I comment out the lines in main.js that require/use ./build/React the react-tools module loads fine and the transformer runs correctly.