You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: npm-react-tools/README.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ By default JSX files with a `.js` extension are transformed. Use the `-x` option
30
30
--harmony Turns on JS transformations such as ES6 Classes etc.
31
31
--source-map-inline Embed inline sourcemap in transformed source
32
32
--strip-types Strips out type annotations
33
+
--es6module Parses the file as a valid ES6 module
34
+
--non-strict-es6module Parses the file as an ES6 module, except disables implicit strict-mode (i.e. CommonJS modules et al are allowed)
33
35
34
36
## API
35
37
@@ -41,6 +43,8 @@ option | values | default
41
43
`harmony` | `true`: enable ES6 features | `false`
42
44
`sourceFilename` | the output filename for the source map | `"source.js"`
43
45
`stripTypes` | `true`: strips out type annotations | `false`
46
+
`es6module` | `true`: parses the file as an ES6 module | `false`
47
+
`nonStrictEs6module` | `true`: parses the file as an ES6 module, except disables implicit strict-mode (i.e. CommonJS modules et al are allowed) | `false`
0 commit comments