Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
/ esbuild-kit Public archive

Fast, opinionated build system for UI libraries

License

Notifications You must be signed in to change notification settings

aslilac/esbuild-kit

Repository files navigation

esbuild-kit
esbuild-kit

Provides everything you need to build your project with ESBuild.

  • First class CSS, SCSS, and CSS modules
  • TypeScript support, including type checking
  • Sane defaults
// build.mjs
import b from "esbuild-kit";

b({
	entryPoint: "./src/index.js",
	formats: ["cjs", "esm"],
	outdir: "./build/",
});

Motivation

  • Most of the build tools we've been using for web development are dreadfully slow, often hard to configure, tend to be walled gardens that lock you in, and even then you often can't get them to do quite what you really want.
  • Newer tools are coming out that are fast, but incomplete.
  • ESBuild and SWC are both great, but are also each missing their own sets of features.
  • Tools like Vite and Snowpack very heavily target the browser, and aren't very well suited for "building libraries for use in things that will then target the browser."
  • Bundling images and CSS into your JavaScript bundle is a footgun, and yet many tools insist on doing it.

About

Fast, opinionated build system for UI libraries

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages