Package Exports
- tsup
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 (tsup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
tsup
Rollup + ESBundle.
This library is intentionally kept simple, if you want customizations please use Rollup directly.
Install
Install it locally in your project folder:
npm i tsup -D
# Or Yarn
yarn add tsup --devYou can also install it globally but it's not recommended.
Usage
Bundle files
tsup [...files]Files are written into ./dist.
Generate declaration file
tsup index.ts --dtsThis will emit ./dist/index.js and ./dist/index.d.ts.
Bundle files and node modules
tsup [...files] --bundleWhen you're bundling a lot files, this can be 10x~200x slower than ESBuild.
Run a program
tsup run main.tsFor more details:
tsup --helpLicense
MIT © EGOIST (Kevin Titor)