Skip to content

Unbundle Mode #78

Closed
Closed
Feature
@tats-u

Description

@tats-u

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions