JSPM

  • Created
  • Published
  • Downloads 114568
  • Score
    100M100P100Q162523F
  • License MIT

An unified javascript build system

Package Exports

  • unbuild

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (unbuild) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

unbuild

npm version npm downloads Github Actions Codecov

An 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 bundleles dists with file-to-file transpilation.

✨ Passive watcher

Stub dist once using jiti and you can try and link your project without need 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 build key in package.json or build.config.{js,ts,json} to specify configuration.

See options here.

Fun fact

This library is built using itself for publishing!

License

MIT