Consistently better experience than raw Esbuild #586
eric-burel
started this conversation in
Show and tell
Replies: 1 comment
-
Yes, I had built a simple esbuild based bundler for bundling lib/cli on my own before this, but ended up using existing tools. currently
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
First, I wanted to congrat @egoist on this library! I get a consistenly better experience than when using Esbuild related tools. I guess Tsup is adding relevant additional config/tooling to have a better support of various advanced use cases.
I am developing a toolkit that is a port of a Meteor framework, VulcanJS, to the broader NPM ecosystem: https://vulcan-docs.vercel.app/
I want to use the most modern tooling regarding the build, in order to use ES Modules systematically and completely drop Webpack. This means all my packages are exporting ESM, sometimes with multiple exports (client and server), and can rely on other ESM packages or CommonJS exports.
Here, I specifically needed to build an Express server written on TypeScript, and that can depend on my package library.
I'd like to share a few things I've tested, and my final workflow:
nodemon.json (then run
nodemon app.ts
to run your server):Tsup with
tsup-node
worked out of the box, as soon I fixed by tsconfig to correctly handle ESM and output ES2020 code. Here is my package.json setup:If it can help, here are also the tsconfig:
and the
tsup.config.ts
:Beta Was this translation helpful? Give feedback.
All reactions