Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bun section to Getting started #2517

Merged
merged 6 commits into from
Jul 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,23 @@ etc.) you use.
To use more modern JavaScript features than what your users support,
[configure esbuild’s `target`][esbuild-target].

`@mdx-js/esbuild` can also be used with [Bun][]:

<details>
<summary>Expand example</summary>

```toml path="bunfig.toml"
preload = ["./bunMdxEsbuild.ts"]
```

```js twoslash path="bunMdxEsbuild.ts"
import {plugin} from 'bun'
import mdx from '@mdx-js/esbuild'

plugin(mdx())
```
</details>

karlhorky marked this conversation as resolved.
Show resolved Hide resolved
#### Rollup

<details>
Expand Down Expand Up @@ -911,6 +928,8 @@ See its readme on how to configure it.

[build-system-vite]: #vite

[bun]: https://bun.sh/
karlhorky marked this conversation as resolved.
Show resolved Hide resolved

[bundler-esbuild]: #esbuild

[bundler-rollup]: #rollup
Expand Down