Skip to content

Commit 108c4b5

Browse files
add keep_names option to wrangler config docs (#21896)
--------- Co-authored-by: ToriLindsay <[email protected]>
1 parent f3d54d1 commit 108c4b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ At a minimum, the `name`, `main` and `compatibility_date` keys are required to d
178178
- Minify the Worker script before uploading.
179179
- If you're using the [Cloudflare Vite plugin](/workers/vite-plugin/), `minify` is replaced by Vite's [`build.minify`](https://vite.dev/config/build-options.html#build-minify).
180180

181+
- `keep_names` <Type text="boolean" /> <MetaInfo text="optional" />
182+
183+
- Wrangler uses esbuild to process the Worker code for development and deployment. This option allows
184+
you to specify whether esbuild should apply its [keepNames](https://esbuild.github.io/api/#keep-names) logic to the code or not. Defaults to `true`.
185+
181186
- `logpush` <Type text="boolean" /> <MetaInfo text="optional" />
182187

183188
- Enables Workers Trace Events Logpush for a Worker. Any scripts with this property will automatically get picked up by the Workers Logpush job configured for your account. Defaults to `false`. Refer to [Workers Logpush](/workers/observability/logs/logpush/).

0 commit comments

Comments
 (0)