Skip to content

chore(templates): minify: false in package-builder esbuild configs#1214

Merged
John-David Dalton (jdalton) merged 1 commit intomainfrom
chore/no-esbuild-minify
Apr 17, 2026
Merged

chore(templates): minify: false in package-builder esbuild configs#1214
John-David Dalton (jdalton) merged 1 commit intomainfrom
chore/no-esbuild-minify

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

@jdalton John-David Dalton (jdalton) commented Apr 17, 2026

Flip minify: trueminify: false in both package-builder templates (cli-package and cli-sentry-package).

Why

Repo-wide rule: shipped bundles never minify. Minification breaks ESM/CJS interop and makes debugging harder. The esbuild-minify validation scripts elsewhere in the org (socket-lib, socket-packageurl-js, socket-registry, socket-sdk-js) already enforce this for finished packages. The templates should default to the same so newly-scaffolded packages are compliant out of the box.

Files

  • packages/package-builder/templates/cli-package/.config/esbuild.index.mts
  • packages/package-builder/templates/cli-sentry-package/.config/esbuild.index.mts

Paired with similar cleanup in socket-cli#1213 (tsconfig sourcemaps).


Note

Low Risk
Template-only build output change; no runtime logic changes beyond producing unminified bundles.

Overview
Newly scaffolded cli-package and cli-sentry-package templates now set minify: false in their esbuild.index.mts configs, disabling minification for the generated CLI entry bundle.

Reviewed by Cursor Bugbot for commit 2fe51b3. Configure here.

Both package-builder templates (cli-package and cli-sentry-package)
shipped with minify: true in their esbuild.index.mts. Flip to false
to match the repo-wide rule that shipped bundles never minify.

Minification breaks ESM/CJS interop and makes debugging harder; the
esbuild-minify validation scripts elsewhere in the org enforce this
for finished packages. These templates should default to the same.
@jdalton John-David Dalton (jdalton) merged commit 34d6745 into main Apr 17, 2026
6 checks passed
@jdalton John-David Dalton (jdalton) deleted the chore/no-esbuild-minify branch April 17, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants