Skip to content

Commit

Permalink
chore: use bun target
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Jun 15, 2024
1 parent e9235e6 commit 7b70122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ This [esbuild](https://esbuild.github.io/)/[Bun](https://bun.sh/docs/bundler) bu
> [!WARNING]
> You cannot use it in `--compile` mode ([Feature issue](https://github.com/oven-sh/bun/issues/11895))
> [!WARNING]
> For now, it runs only by [Bun](https://bun.sh/) runtime
# [Bun build](https://bun.sh/docs/bundler) usage

```ts
Expand Down
1 change: 1 addition & 0 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { $ } from "bun";

await Bun.build({
entrypoints: ["./src/index.ts"],
target: "bun",
outdir: "./dist",
}).then(console.log);

Expand Down

0 comments on commit 7b70122

Please sign in to comment.