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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ By default JSX files with a `.js` extension are transformed. Use the `-x` option
32
32
--strip-types Strips out type annotations
33
33
--es6module Parses the file as a valid ES6 module
34
34
--non-strict-es6module Parses the file as an ES6 module, except disables implicit strict-mode (i.e. CommonJS modules et al are allowed)
35
+
--target <version> Target version of ECMAScript. Valid values are "es3" and "es5". Use "es3" for legacy browsers like IE8.
35
36
36
37
## API
37
38
@@ -45,6 +46,7 @@ option | values | default
45
46
`stripTypes` | `true`: strips out type annotations | `false`
46
47
`es6module` | `true`: parses the file as an ES6 module | `false`
47
48
`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