News for hackers. Stuff that matters.
Re:Why Is Esbuild Fast? by jarym on Tuesday February 16, 2021 @11:23AM (#26155457)
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)
Re:Why Is Esbuild Fast? by vijaybritto on Tuesday February 16, 2021 @12:27PM (#26156315)
Open 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.
Re:Why Is Esbuild Fast? by qvq on Wednesday February 17, 2021 @05:56AM (#26165021)
I wonder if window['exposedObject'] = {... would work.
Re:Why Is Esbuild Fast? by rizky05 on Tuesday February 16, 2021 @02:34PM (#26157791)
esbuild has keepNames options to preserve that
Re:Why Is Esbuild Fast? by roryokane on Wednesday February 17, 2021 @08:13PM (#26174207)
Indeed. The relevant documentation: https://esbuild.github.io/api/#keep-names