Repository
Current version released
4 years ago
esw
esw is a JavaScript/TypeScript library build tool. It offers blazing fast performance utilizing esbuild, and requires zero configuration.
- No more build scripts or configs. esw has supported automatic build option inference.
- Smaller bundle size. It wouldn’t bundle any
dependenciesorpeerDependenciesby default. - The most of web project source file type has been supported by default, eg. TypeScript/JavaScript/JSX/CSS(experimental)
Installation
using npm
npm i esw --save-devusing yarn
yarn add esw -Dusing pnpm
pnpm i esw -D
Getting 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.
project └─dist ├─index.cjs.js └─index.esm.js
Advanced Usage
esw has supported the most of esbuild cli options. e.g:
esw build --minify --sourcemap --target=es2019 --format=esmBuild codebase
esw buildWatch codebase
esw watchSupported source file types
Please refer to esbuild documentation.