diff --git a/changelog.md b/changelog.md index 8dc8a8d..e72e559 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-03-11 - 2.9.2 - fix(mod_esbuild) +preserve function and class names in esbuild output by enabling keepNames in both dev and prod configs + +- Added keepNames: true to esbuild options in ts/mod_esbuild/index.child.ts for the non-minified/dev build +- Added keepNames: true to esbuild options in ts/mod_esbuild/index.child.ts for the minified/production build to improve stack traces, debugging, and runtime reflection + ## 2026-03-05 - 2.9.1 - fix(mod_custom) use absolute smartfs entry.path instead of joining with dirPath when building fullPath diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 2ce5001..5107a38 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsbundle', - version: '2.9.1', + version: '2.9.2', description: 'a multi-bundler tool supporting esbuild, rolldown, and rspack for painless bundling of web projects' } diff --git a/ts/mod_esbuild/index.child.ts b/ts/mod_esbuild/index.child.ts index 29aa1f1..30919d2 100644 --- a/ts/mod_esbuild/index.child.ts +++ b/ts/mod_esbuild/index.child.ts @@ -43,6 +43,7 @@ export class TsBundleProcess { sourcemap: true, format: 'esm', target: 'es2022', + keepNames: true, entryNames: plugins.path.parse(toArg).name, outdir: plugins.path.parse(toArg).dir, splitting: false, @@ -67,6 +68,7 @@ export class TsBundleProcess { format: 'esm', target: 'es2022', minify: true, + keepNames: true, entryNames: plugins.path.parse(toArg).name, outdir: plugins.path.parse(toArg).dir, tsconfig: paths.tsconfigPath,