dillon1000/react

Commit

Add sourceMap option to react-tools transform

Allow tools like grunt-react to include inline source maps in the
generated JavaScript. Browserify can then combine these source maps when
bundling everything together.

Usage:

```
var transform = require('react-tools').transform;
var output = transform(jsxContent, {
  sourceMap: true,
  sourceFilename: 'source.jsx'
});
```

The `output` will have an inline source map comment appended.
Browse files
Changed paths1 file
First-parent comparison
M main.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…