Skip to content
forked from unjs/unbuild

An unified javascript build system

License

Notifications You must be signed in to change notification settings

Simon-He95/unbuild

 
 

Repository files navigation

unbuild

npm version npm downloads Github Actions Codecov

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 unbuild

Configuration

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 (use npm i -g corepack for Node.js < 16.10)
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

MIT

About

An unified javascript build system

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.0%
  • Other 1.0%