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.
How do i prevent bun from making these name-changes? I ask for either a changes in my code or a configuration that i can pass to bun (preferrably by cli).
Edit: This is the structure of my entrypoint file, the procedure is repeated for each class and function I want included:
import { API } from './API';
const __KEEP__ = (fn: any) => fn;
__KEEP__(API);
3