4 ms·
Esbuild is certainly fast but I could never figure out how to get it to preserve some symbols during minification (for when I want to expose some class methods
by jarym 6y ago
Esbuild is certainly fast but I could never figure out how to get it to preserve some symbols during minification (for when I want to expose some class methods or properties publicly to external consumers)
- vijaybritto 6y agoOpen an issue if you haven't. He is very responsive and thoughtful considering he is the cofounder of Figma a company which is rapidly growing.
- rizky05 6y agoesbuild has keepNames options to preserve that
- roryokane 6y agoIndeed. The relevant documentation: https://esbuild.github.io/api/#keep-names https://esbuild.github.io/api/#keep-names
- qvq 6y agoI wonder if window['exposedObject'] = {... would work.