Skip to content

Replace rollup by tsup as building tool #2627

@zbeyens

Description

@zbeyens

Description

The current project utilizes Rollup as the building tool, but we would like to replace it with Tsup for better performance and additional features. This issue aims to implement the necessary changes to switch from Rollup to Tsup seamlessly.

Expected Specifications:

  1. In the root package, update the p:build scripts to use Tsup instead of Rollup.
  2. In the root package, update the p:build:watch script to use Tsup with the --watch flag for automatic rebuilds on file changes.
  3. In the root package, update g:build:watch to build and watch all packages concurrently (using turbo).
  4. Enable hot reloading for the Next.js app www when changes occur in any file in packages, using transpilePackages. Currently, with Rollup, a restart is necessary. Modify the configuration to support hot reloading seamlessly. This is the main goal of that issue.
  5. Ensure there are no regressions from the current Rollup configuration. The project should build and run without any issues and produce the same expected output as it does with Rollup. We will do a test release to confirm that one.

Concurrent attempts are accepted until the first PR lands.

Funding

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions