Open mangs opened 1 week ago
--minify includes --minify-identifiers, which will rename functions. For use cases that depend on function.name and class.name to be as is, there is https://esbuild.github.io/api/#keep-names, which bun does not have yet. changing this to a feature request.
--minify includes --minify-identifiers, which will rename functions. For use cases that depend on function.name and class.name to be as is, there is https://esbuild.github.io/api/#keep-names, which bun does not have yet. changing this to a feature request.
Thank you Dave. Looking forward to it.
What version of Bun is running?
1.1.17+bb66bba1b
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
.name
. For example:console.log(
Function name: ${testFunction.name}
);const buildConfiguration = { define: {}, entrypoints: ['./path/to/example/file.mjs'], external: [], format: 'esm', loader: {}, minify: true, naming: { chunk: '[name].[hash].mjs', entry: '[name].mjs', }, outdir: './dist', plugins: [], publicPath: '', root: '.', sourcemap: 'external', splitting: true, target: 'bun', }