Hi, I've got following tsup.config.ts
:
import type { Options } from 'tsup';
const env = process.env.NODE_ENV;
export const tsup: Options = {
bundle: true,
skipNodeModulesBundle: false,
};
when running npx tsup src/runtime-libs/runtime-libs.ts --out-dir test --platform=browser
I can still see in my generated code __toESM(require("spectorjs")
. I want sup
to bundle all dependencies, just like rebuild --bundle
does. How can I achieve it?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too