esbuild README

The project's README from github.com/evanw/esbuild. As one markdown file: README.md.

esbuild: An extremely fast JavaScript bundler
Website | Getting started | Documentation | Plugins | FAQ

Why?

Our current build tools for the web are 10-100x slower than they could be:

Bar chart with benchmark results

The main goal of the esbuild bundler project is to bring about a new era of build tool performance, and create an easy-to-use modern bundler along the way.

Major features:

Check out the getting started instructions if you want to give esbuild a try.

esbuild (evanw/esbuild)

Searching Database…

40.1K ·GitHub
这是什么?esbuild 是一个用 Go 编写的、速度极快的网页打包工具。它的目标是打造一个易用的现代打包工具,开创构建工具性能的新时代。
esbuild 是命令行工具、库,还是两者都是?两者都是——它既提供命令行工具,也提供一套简单直接的 API,可以用 JavaScript 和 Go 来调用。
我怎么把它添加到项目里?先用 'npm install esbuild' 在本地安装,然后按照入门说明,从命令行或代码里完成你的第一次构建。
它在 Windows 上能用吗,还是只能在 macOS 和 Linux 上用?它可以在 Windows、macOS 和 Linux 上运行——因为是用 Go 写的,每个平台都有对应的原生二进制文件。
esbuild 只能用于 React 项目吗?不是——React 和 TSX 只是它内置语言支持的一部分;不管用不用框架,它都能打包普通的 JavaScript、TypeScript 和 CSS。
它在开发阶段有用吗,还是只是生产环境构建工具?都有用:esbuild 自带本地服务器和监视模式,开发时文件一有改动就会自动重新构建,还有插件系统可以自定义构建流程。
What are similar projects?rspack, oxc, closure-compiler, parcel, webpack, snowpack, tsup, tamagui
Creator
evanw
Size
20.4 MB
Stars
40.1K
Age
10y
Commits · 90 Days