add docs for ast and code option
This commit is contained in:
parent
24f6dfa8e2
commit
ce9a82c194
12
doc/usage.md
12
doc/usage.md
@ -159,7 +159,17 @@ to5.transformFile("filename.js", options, function (err, result) {
|
||||
|
||||
// Enable support for experimental ES7 features
|
||||
// Default: false
|
||||
experimental: true
|
||||
experimental: true,
|
||||
|
||||
// Set this to `false` if you don't want the transformed AST in the returned
|
||||
// result
|
||||
// Default: true
|
||||
ast: true,
|
||||
|
||||
// Set this to `false` if you don't want the transformed code in the returned
|
||||
// result
|
||||
// Default: true
|
||||
code: true
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user