Closed
Description
Clear and concise description of the problem
tsup can disable code splitting by the following config:
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["./src"],
format: "esm",
splitting: false, // !!!!!! HERE !!!!!
dts: true,
target: "es2021",
});
However, tsdown doesn't have such a splitting
property.
Disabling code splitting improves readability and analyzability of output JS code.
tsup's doc: https://tsup.egoist.dev/#code-splitting
Suggested solution
Support splitting
property
Alternative
Use tsup instead of tsdown. tsup has already been able to disable splitting.
Additional context
I tried tsdown in my packages in https://github.com/tats-u/markdown-cjk-friendly/, but gave up due to the lack of this feature.
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.