2024-07-17 23:46:22 +08:00
2024-07-17 23:46:22 +08:00
2021-11-26 01:34:50 +08:00
2024-07-17 23:46:22 +08:00
2021-11-26 01:26:55 +08:00
2024-07-25 00:31:11 +08:00
2021-05-29 12:11:19 +08:00
2024-07-18 00:00:18 +08:00
2024-07-17 23:46:22 +08:00

tsup

npm version npm downloads

Bundle your TypeScript library with no config, powered by esbuild.

👀 What can it bundle?

Anything that's supported by Node.js natively, namely .js, .json, .mjs. And TypeScript .ts, .tsx. CSS support is experimental.

⚙️ Install

Install it locally in your project folder:

npm i tsup -D
# Or Yarn
yarn add tsup --dev
# Or pnpm
pnpm add tsup -D

You can also install it globally but it's not recommended.

📖 Usage

Bundle files

tsup [...files]

Files are written into ./dist.

You can bundle multiple files in one go:

tsup src/index.ts src/cli.ts

This will output dist/index.js and dist/cli.js.

📚 Documentation

For complete usages, please dive into the docs.

For all configuration options, please see the API docs.

💬 Discussions

Head over to the discussions to share your ideas.

Sponsors

Ship UIs faster with automated workflows for Storybook

sponsors

Project Stats

Alt

License

MIT © EGOIST

Description
The simplest and fastest way to bundle your TypeScript libraries.
Readme 12 MiB
Languages
TypeScript 98.7%
JavaScript 0.7%
Dockerfile 0.6%