Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify build process to disable code splitting #4334

Closed
wants to merge 1 commit into from

Commits on Jul 3, 2024

  1. Modify build process to disable code splitting

    The code splitting feature in `tsup` breaks up source code into logical
    modules so that if a module is not being used it can be removed by a
    build tool that supports tree shaking.
    
    However, the modules that `tsup` creates do not necessary match the
    files in the original source code, and `tsup` gives them a random name.
    This makes it frustrating for developers on a client team who are
    debugging a `core` package by inspecting the compiled version, because
    it is impossible to tell what a chunk file contains without first
    opening it up.
    
    This commit thus configures `tsup` to disable the code splitting
    feature.
    mcmire committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    f7a7123 View commit details
    Browse the repository at this point in the history