Compress Javascript. [js ts jsx tsx] --esbuild--> Minify Javascript
Compress Javascript. [js ts jsx tsx] --esbuild--> Minify Javascript
将Javascript Typescript JSX TSX代码进行混淆压缩 通过esbuild对代码进行在线压缩
esbuild is a CLI, NPM package, and Go module that makes bundling JavaScript accessible and fast. It is the brainchild of Evan W. and is implemented in Go and JavaScript / TypeScript. It was first released early 2020, and is now 0.9.x (as of early 2021).
esbuild has exhaustive documentation, a highly discoverable CLI experience, and is extremely fast. But what makes esbuild great is how well it solves for a well-defined, constrained problem space.
So what can you use esbuild for?
You can use esbuild to quickly link your JavaScript (js, jsx, ts, and tsx) and CSS dependencies as deployable assets for the web. And you can do so with bundling or code-splitting, plugins, and more. And what makes esbuild such a quality-of-life tool for me personally is that it implements incremental compilation, watch mode, and serve mode.
There’s a lot to unpack there. I’ll iterate each point now: