Skip to content

Commit 1415b4d

Browse files
committed
update docs/bundler-configuration.md
1 parent b81a124 commit 1415b4d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/bundler-configuration.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,24 @@ No additional configuration is typically required for Webpack 5+.
2424

2525
## esbuild / Bun
2626

27+
### Bun Example ([bundler.ts](file:///Users/estebanrfp/.gemini/antigravity/playground/primal-triangulum/bundler.ts))
28+
29+
When using `Bun.build`, add a step to copy the assets after the build completes:
30+
31+
```js
32+
async function build() {
33+
console.time("Build");
34+
const result = await Bun.build({
35+
entrypoints: ['./app.js'],
36+
outdir: './dist',
37+
target: 'browser',
38+
});
39+
console.timeEnd("Build");
40+
}
41+
42+
await build();
43+
```
44+
2745
No additional configuration required.
2846

2947
## CDN Usage

0 commit comments

Comments
 (0)