Skip to content

Commit

Permalink
Merge pull request #3636 from cody/jsx-target
Browse files Browse the repository at this point in the history
Add target option to npm readme
  • Loading branch information
zpao committed Apr 9, 2015
2 parents f4a07c4 + 148543c commit 857736d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions npm-react-tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ By default JSX files with a `.js` extension are transformed. Use the `-x` option
--strip-types Strips out type annotations
--es6module Parses the file as a valid ES6 module
--non-strict-es6module Parses the file as an ES6 module, except disables implicit strict-mode (i.e. CommonJS modules et al are allowed)
--target <version> Target version of ECMAScript. Valid values are "es3" and "es5". Use "es3" for legacy browsers like IE8.

## API

Expand All @@ -45,6 +46,7 @@ option | values | default
`stripTypes` | `true`: strips out type annotations | `false`
`es6module` | `true`: parses the file as an ES6 module | `false`
`nonStrictEs6module` | `true`: parses the file as an ES6 module, except disables implicit strict-mode (i.e. CommonJS modules et al are allowed) | `false`
`target` | `"es3"`: ECMAScript 3<br>`"es5"`: ECMAScript 5| `"es5"`

```js
var reactTools = require('react-tools');
Expand Down

0 comments on commit 857736d

Please sign in to comment.