esw v0.15.0
esw
esw is a JavaScript/TypeScript library build tool. It offers blazing fast performance utilizing esbuild, and requires zero configuration.
✨Passive usage
Infer build options from package.json by default. Ideally you don't need to write any configurations. Also support multiple entry points via glob syntax(eg. esw src/**/*.ts --outdir=dist) if necessary.
📦Optimized bundling
Driven by esbuild and only bundle codebase without any dependencies and peerDependencies by default.
Installation
npm i esw -DGetting Started
3 steps to get started:
🖊 declare main or module or both them in the package.json.
{ "name": "esw", "main": "dist/index.cjs.js", "module": "dist/index.esm.js" }⚠️ The output format what
modulefield refers to always be treated asesmwhy.🏃 Run
esw buildfrom the working directory.esw build🏆 All transpiled products would be placed in the target output path which were inferred by esw.
codebase root └─dist ├─index.cjs.js └─index.esm.js
Advanced Usage
esw has supported the most of esbuild cli options:
esw build --minify --sourcemap --platform=node --format=esmBuild codebase
esw build src/*.tsWatch codebase
esw watch src/index.tsSupported source file types
Please refer to esbuild documentation.
Supported package.json fields
| Field name | Status |
|---|---|
| main | ✔ |
| module | ✔ |
| type | ✔ |
License
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago