egoist / egoist/tsup

Question: bundel a node package

Open
#635 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm thinking of bundling a node server into a single file to make it "portable".

However, when reading the [documentation](https://tsup.egoist.sh/#excluding-all-packages) I see:

> If you are using tsup to build for Node.js applications/APIs, usually bundling dependencies is not needed, and it can even break things, for instance, while outputting to [ESM](https://nodejs.org/api/esm.html).

If I'm not outputting ESM, are there any other cases that could break the code? For example, how is tsup handling imports of wasm files?

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.