Skip to content

Commit ade2356

Browse files
authored
Update bundling.mdx
1 parent 296d03f commit ade2356

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/content/docs/workers/wrangler/bundling.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ description: Review Wrangler's default bundling.
77

88
By default, Wrangler bundles your Worker code using [`esbuild`](https://esbuild.github.io/). This means that Wrangler has built-in support for importing modules from [npm](https://www.npmjs.com/) defined in your `package.json`. To review the exact code that Wrangler will upload to Cloudflare, run `npx wrangler deploy --dry-run --outdir dist`, which will show your Worker code after Wrangler's bundling.
99

10+
<details>
11+
<summary>`esbuild` version</summary>
12+
13+
Wrangler uses `esbuild` v0.24. We periodically update the `esbuild` version included with Wrangler, and since `esbuild` is a pre-1.0.0 tool, this may sometimes include breaking changes to how bundling works. In particular, we may bump the `esbuild` version in a Wrangler minor version.
14+
15+
</details>
16+
1017
:::note
1118

1219
Wrangler's inbuilt bundling usually provides the best experience, but we understand there are cases where you will need more flexibility.

0 commit comments

Comments
 (0)