//obuildbyvicb

obuild

πŸ“¦ 😯 Zero-config ESM/TS package builder. powered by oxc, rolldown and rolldown-plugin-dts.

0
0
0

πŸ“¦ obuild 😯

βœ… Zero-config ESM/TS package builder.

Powered by undefinedoxcundefined, undefinedrolldownundefined and undefinedrolldown-plugin-dtsundefined.

The obuild project aims to be the next-generation successor to the current unbuild.

  • 🌱 Fresh rewrite with cleanups and removal of legacy features.
  • πŸš€ Uses undefinedoxcundefined and undefinedrolldownundefined instead of rollup and mkdist.
  • πŸ‘Œ Strict ESM-compliant imports with explicit extensions.
  • πŸ”’ Types are built with isolated declaration constraints.
  • πŸͺ¦ No support for CommonJS output.

Some differences are not easy to adopt. Developing as a standalone project allows for faster progress and dogfooding in real projects.

Usage

undefinedCLI:undefined

# bundle
npx obuild ./src/index.ts

# transform
npx obuild ./src/runtime/:./dist/runtime

You can use --dir to set the working directory.

undefinedProgrammatic:undefined

import { build } from "obuild";

await build(".", ["./src/index.ts"]);

[!NOTE]
Auto entries inference similar to unbuild coming soon (#4).

Currently used by

Proof of concept

[!IMPORTANT]

This is a proof-of-concept project.

Features are incomplete, and output behavior may change between versions.

Feedback and contributions are very welcome! If you’d like to make changes with more than a few lines of code, please open an issue first to discuss.

License

πŸ’› Released under the MIT license.

[beta]v0.13.0