Skip to content

Commit

Permalink
docs: update options [skip ci] (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalexiei authored Oct 1, 2024
1 parent 456764f commit c196bb9
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export interface Options {
exclude?: FilterPattern
enforce?: 'pre' | 'post' | undefined
/**
* If you use swc or typescript, you need to install `@swc/core` or `typescript` yourself.
* @default oxc
* You need to install one of the supported transformers yourself.
* @default typescript
*/
transformer?: 'oxc' | 'swc' | 'typescript'
/** Only for typescript transformer */
Expand Down Expand Up @@ -114,6 +114,15 @@ With `autoAddExts`, it will be transformed to:
import {} from './foo.js'
```

### `patchCjsDefaultExport`

Patch `export default` in `.d.cts` to `export =`

---

> [!NOTE]
> For the exhaustive set of options check [options](src/core/options.ts)
## Sponsors

<p align="center">
Expand All @@ -125,7 +134,3 @@ import {} from './foo.js'
## License

[MIT](./LICENSE) License © 2024-PRESENT [三咲智子](https://github.com/sxzz)

```
```

0 comments on commit c196bb9

Please sign in to comment.