Skip to content

Commit

Permalink
docs: explain why keepNames is used
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Nov 19, 2023
1 parent a95a482 commit 4d3d33c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/transform/get-esbuild-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export const cacheConfig = {
*/
minifyWhitespace: true,

// TODO: Is this necessary if minifyIdentifiers is false?
/**
* esbuild renames variables even if minification is not enabled
* https://esbuild.github.io/try/#dAAwLjE5LjUAAGNvbnN0IGEgPSAxOwooZnVuY3Rpb24gYSgpIHt9KTs
*/
keepNames: true,
};

Expand Down

0 comments on commit 4d3d33c

Please sign in to comment.