chris/unbuild
publicClone
Push over the same URL. A password will not work: create a token under access tokens and use it in place of one.
An unified javascript build system
- .github
- src
- test
- .editorconfig 224 B
- .eslintignore 23 B
- .eslintrc 104 B
- .gitignore 74 B
- CHANGELOG.md 15.5 KB
- LICENSE 1.0 KB
- package.json 1.8 KB
- pnpm-lock.yaml 131.5 KB
- README.md 2.2 KB
- renovate.json 37 B
- tsconfig.json 248 B
unbuild
A unified javascript build system
📦 Optimized bundler
Robust rollup based bundler that supports typescript and generates commonjs and module formats + type declarations.
📁 Bundleless build
Integration with mkdist for generating bundleless dists with file-to-file transpilation.
✨ Passive watcher
Stub dist once using jiti and you can try and link your project without needing to watch and rebuild during development.
✍ Untype Generator
Integration with untyped.
✔️ Build Validator
Automatically check for potential missing and unused dependencies. Also you can check output size and exports quickly in CLI output.
Usage
Create src/index.ts and build.config.ts:
export default {
entries: [
'./src/index'
]
}npx unbuildConfiguration
You can either use unbuild key in package.json or build.config.{js,ts,json} to specify configuration.
See options here.
💻 Development
- Clone this repository
- Enable Corepack using
corepack enable(usenpm i -g corepackfor Node.js < 16.10) - Install dependencies using
pnpm install - Run interactive tests using
pnpm dev