Skip to content

Commit

Permalink
docs: add RemoveWrapperFunction example
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed May 3, 2024
1 parent f9da7fe commit 2b3d03f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -90,6 +90,8 @@ AST({

### Built-in Transformers

#### RemoveWrapperFunction

```ts
import { RemoveWrapperFunction } from 'unplugin-ast/transformers'

Expand All @@ -102,6 +104,18 @@ declare const RemoveWrapperFunction: (
) => Transformer<CallExpression>
```

Transforms:

```ts
export default defineConfig(config)
```

To:

```ts
export default config
```

### Custom Transformers

```ts
Expand Down

0 comments on commit 2b3d03f

Please sign in to comment.