Skip to content

Commit 04f9164

Browse files
authored
Fix the default value for keep_names (#9520)
1 parent 5710518 commit 04f9164

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/fair-lamps-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
fix the default value for keep_names (`true`)

packages/wrangler/src/config/environment.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,11 @@ interface EnvironmentInheritable {
358358
minify: boolean | undefined;
359359

360360
/**
361-
* Keep function names after javascript transpilations.
361+
* Set the `name` property to the original name for functions and classes renamed during minification.
362362
*
363-
* @default {true}
363+
* See https://esbuild.github.io/api/#keep-names
364+
*
365+
* @default true
364366
* @inheritable
365367
*/
366368
keep_names: boolean | undefined;

0 commit comments

Comments
 (0)