Changing api documentation for jsx transformer
Hi in chrome debugger, the files that use sourcemaps from the transformer get "null" as the filename during debug, https://github.com/facebook/react/blob/master/main.js#L15 "sourceFilename" is used instead of "filename" to specify the filename in the sourcemap.
Leon Fedotov committed
Oct 27, 2014 at 19:18 UTC
a29d496443a0569ecb434a7b51c246d332a6039d
1 file changed
+1
-1
npm-react-tools/README.md
+1
-1
@@ -37,7 +37,7 @@ option | values | default
37
-------|--------|---------
38
`sourceMap` | `true`: append inline source map at the end of the transformed source | `false`
39
`harmony` | `true`: enable ES6 features | `false`
40
-`filename` | the output filename for the source map | `"source.js"`
40
+`sourceFilename` | the output filename for the source map | `"source.js"`
41
`stripTypes` | `true`: strips out type annotations | `false`
42
43
```js