Live data from Hacker News

Esbuild 0.9

github.com

1–10 of 123 posts

Re: Esbuild 0.9

#4
We now use it to build Yarn, and it's been working very well. Still some rough edges that prevent us from adopting it at work (like the lack of dynamic imports when the import expression references variables), but I'm slowly making progress in implementing workarounds for that through loaders, and the first results are encouraging. At its worst, with a Webpack/Esbuild hybrid approach, we get at least 2x better perfs.

Re: Esbuild 0.9

#5
Hell yes, esbuild is an amazing tool. I not only use it in most CRA projects (where it replaces webpack and builds everything at least two times faster), but it's also easy to use for plain HTML pages to add some interactivity without writing thousands of lines of webpack black magic:

  esbuild App.tsx --define:process.env.NODE_ENV=\\\"production\\\" --bundle --minify --target=es6 --outfile=out.js
where App.tsx is your entry point. Include out.js into the page and you're done.

Re: Esbuild 0.9

#6
esbuild makes it pretty clear that writing the JS ecosystem in JS is a bad choice*.

now we need to rewrite tsc/babel/npm/eslint/etc... in a language that compile down to native binary that is also cross platform (like go or rust),

to gain the same performance improvements across the entire JS tool-chain.

* based on the benchmark on their landing page.

Re: Esbuild 0.9

#8
post #5

Hell yes, esbuild is an amazing tool. I not only use it in most CRA projects (where it replaces webpack and builds everything at least two times faster), but it's also easy to use for plain HTML pages to add some interactivity without writing thousands of lines of webpack black magic: esbuild App.tsx --define:process.env.NODE_ENV=\\\"production\\\" --bundle --minify --target=es6 --outfile=out.js where App.tsx is your…

This is exceptional - what’s the downside when using it with CRA?
Post reply on HN