Relative Content

Tag Archive for javascripttypescriptbun

Disable class renaming in bun

i have multiple TS-files that each contain an exported class (not using export default syntax).
I want to use bun build to compile these classes into a single js file.
To achieve this I use an entrypoint file that includes all the classes.
For different reasons i need the class names to remain the same as in the original source files. But for some reasons bun renames a few of them, appending a 2 to the name.
I know this is to prevent name collisions, but there are none.