Are there any tools that transform HTML and other files? For example, lets say I have an tag with a src attribute that points to a local image. Can I automatically replace that with a tag with various formats (jpg, webp, avif) and sizes?
Esbuild – An extremely fast JavaScript bundler
81–90 of 288 posts
Re: Esbuild – An extremely fast JavaScript bundler
#82What’s the catch? Do they really have a secret sauce or are there limitations in esbuild to achieve these speed ups?
Esbuild is written in GO.
Re: Esbuild – An extremely fast JavaScript bundler
#83See also SWC, something similar to esbuild but written in Rust. NextJS uses SWC as well as Deno. Rome is also being rewritten in Rust, it's more of a complete set of packages that subsume Webpack, Babel and all the other parts of the JS / TS development experience.
The announcements from NextJS has been really confusing. I don't think they are using SWC yet. They are just working on it. The reason for the confusion is because they write about the progress in the release notes, making it look like they are using it.
Re: Esbuild – An extremely fast JavaScript bundler
#84see comparison with swc: https://swc.rs/docs/benchmark-transform
Re: Esbuild – An extremely fast JavaScript bundler
#85esbuild is fast but it has a lot of place you have to figure out yourself and get into your way of doing thing. 1. dev server: you have to write a bit of code for this server to act as webpack dev server 2. scss: need to install plugin, and plugin cannot use from command line then you need to write a bit of JavaScript 3. global function: if you do `process.env` now you need to inject into build script 4. node package…
I need to give esbuild another go I think.
Re: Esbuild – An extremely fast JavaScript bundler
#86Earlier quoted context omitted.
Consider TypeScript like a linter. ESBuild doesn't run ESLint for you either - you can run it separately, or in parallel. This means that for example, during development, you can see your running code quickly, while your editor runs tsc to highlight type checking errors. And in your build system, you can produce a production bundle to test while in parallel checking for type errors.
It's not a linter, far from it.
Re: Esbuild – An extremely fast JavaScript bundler
#87Work on esbuild started at the start of 2020. It is primarily authored and maintained by Evan Wallace, who, in addition to making this tremendous contribution to the JavaScript ecosystem, is the CTO and co-founder of Figma . Incredible output.
Amazing. That means he does his job right! As a good CTO you shouldn't have anything to do. If you're caught up in work, you're doing it wrong.
Re: Esbuild – An extremely fast JavaScript bundler
#88Re: Esbuild – An extremely fast JavaScript bundler
#89What’s the catch? Do they really have a secret sauce or are there limitations in esbuild to achieve these speed ups?
> Why is esbuild fast? > - It's written in Go and compiles to native code. > - Parallelism is used heavily. > - Everything in esbuild is written from scratch. > - Memory is used efficiently.
> Production readiness > - Used by other projects > - API stability > - Only one main developer > - Not always open to scope expansion