From b1a760d2914205ee2fba1d3813a85339cb9b6e18 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Tue, 22 Apr 2025 17:31:43 +0200 Subject: [PATCH 1/2] add `keep_names` option to wrangler config docs --- src/content/docs/workers/wrangler/configuration.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/docs/workers/wrangler/configuration.mdx b/src/content/docs/workers/wrangler/configuration.mdx index 2dc3c32f91a1c5..2ca64526572330 100644 --- a/src/content/docs/workers/wrangler/configuration.mdx +++ b/src/content/docs/workers/wrangler/configuration.mdx @@ -178,6 +178,11 @@ At a minimum, the `name`, `main` and `compatibility_date` keys are required to d - Minify the Worker script before uploading. - 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). +- `keep_names` + + - Wrangler uses esbuild to process the worker code for development and deployment, this option allows + 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`. + - `logpush` - 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/). From 140b10b3a13f9bf579a44059d0a254e46f02f3b0 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Thu, 24 Apr 2025 17:59:14 +0200 Subject: [PATCH 2/2] Update src/content/docs/workers/wrangler/configuration.mdx Co-authored-by: ToriLindsay --- src/content/docs/workers/wrangler/configuration.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/wrangler/configuration.mdx b/src/content/docs/workers/wrangler/configuration.mdx index 2ca64526572330..4af3e706cd5eac 100644 --- a/src/content/docs/workers/wrangler/configuration.mdx +++ b/src/content/docs/workers/wrangler/configuration.mdx @@ -180,7 +180,7 @@ At a minimum, the `name`, `main` and `compatibility_date` keys are required to d - `keep_names` - - Wrangler uses esbuild to process the worker code for development and deployment, this option allows + - Wrangler uses esbuild to process the Worker code for development and deployment. This option allows 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`. - `logpush`