Skip to content

Commit

Permalink
Rewrite transformers doc (#1123)
Browse files Browse the repository at this point in the history
Reword to make it clearer that factory function cannot be used with transpileOnly, but object is still allowed
  • Loading branch information
cspotcode committed Sep 15, 2020
1 parent 4dba8e8 commit 8af10a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -198,7 +198,7 @@ _The name of the environment variable and the option's default value are denoted

### Programmatic-only Options

* `transformers` `_ts.CustomTransformers | ((p: _ts.Program) => _ts.CustomTransformers)`: An object with transformers or a function that accepts a program and returns an transformers object to pass to TypeScript. Function isn't available with `transpileOnly` flag
* `transformers` `_ts.CustomTransformers | ((p: _ts.Program) => _ts.CustomTransformers)`: An object with transformers or a factory function that accepts a program and returns a transformers object to pass to TypeScript. Factory function cannot be used with `transpileOnly` flag
* `readFile`: Custom TypeScript-compatible file reading function
* `fileExists`: Custom TypeScript-compatible file existence function

Expand Down

0 comments on commit 8af10a5

Please sign in to comment.