Conversation
- Delete esbuild-plugin-dead-code-elimination.mjs (unused plugin)
- Delete packages/cli/scripts/esbuild.config.mjs (broken orphan referencing
non-existent esbuild.cli.config.mjs)
- Remove dead-code-elimination export from build-infra/package.json
- Remove socketPackages / resolvePackageSubpath / resolve-socket-packages
plugin from esbuild.cli.build.mjs (socketPackages is always empty {})
- Remove INLINED_LEGACY_BUILD constant (unused)
- Update build-infra README to remove dead code elimination docs
This was referenced Apr 1, 2026
Contributor
Author
divmain
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
esbuild-plugin-dead-code-elimination.mjs(unused plugin) and remove its export frombuild-infra/package.jsonpackages/cli/scripts/esbuild.config.mjs(broken orphan that imports non-existentesbuild.cli.config.mjs)socketPackages/resolvePackageSubpath/resolve-socket-packagesplugin fromesbuild.cli.build.mjs(socketPackagesis always{}, so the plugin does nothing)INLINED_LEGACY_BUILDconstant (unused)build-infra/README.mdto remove dead code elimination documentationSplit from #1140.
Test plan
pnpm --filter @socketsecurity/cli run buildstill succeeds (removed code was unused)Note
Low Risk
Low risk cleanup removing unused build-time code and documentation; primary risk is any undiscovered external consumer still importing the deleted modules.
Overview
Removes dead build infrastructure: deletes the unused
dead-code-eliminationesbuild plugin, drops its export frombuild-infra/package.json, and strips its documentation and example usage frompackages/build-infra/README.md.Cleans up CLI build tooling by deleting the orphaned
packages/cli/scripts/esbuild.config.mjs, simplifyingpackages/cli/.config/esbuild.cli.build.mjsby removing no-op socket package resolution logic, and removing the unusedINLINED_LEGACY_BUILDenv constant.Written by Cursor Bugbot for commit 87c04aa. Configure here.