Skip to content

Commit

Permalink
Merge pull request facebook#3618 from TimeBomb/master
Browse files Browse the repository at this point in the history
Document new es6module flag in react-tools README
  • Loading branch information
zpao committed Apr 13, 2015
1 parent 0e70730 commit 979ae90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions npm-react-tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ By default JSX files with a `.js` extension are transformed. Use the `-x` option
--harmony Turns on JS transformations such as ES6 Classes etc.
--source-map-inline Embed inline sourcemap in transformed source
--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)

## API

Expand All @@ -41,6 +43,8 @@ option | values | default
`harmony` | `true`: enable ES6 features | `false`
`sourceFilename` | the output filename for the source map | `"source.js"`
`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`

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

0 comments on commit 979ae90

Please sign in to comment.