Skip to content

Conversation

@hiteshshetty-dev
Copy link
Contributor

Summary

This PR optimizes the development build experience by creating a dedicated dev configuration that skips unnecessary build steps, resulting in faster compilation times during development.

Problem

During development, the build process was generating both modern and legacy builds, along with TypeScript declaration files (.d.ts), which significantly slowed down the development feedback loop. These outputs are not needed during active development.

Solution

  • Created a new tsup.config.dev.js configuration file that:
    • Only builds the modern output (skips legacy build)
    • Disables TypeScript declaration file generation (dts: false)
    • Reuses the existing modernConfig function for consistency
  • Updated the dev script to use the new dev-specific configuration
  • Upgraded tsup from ^8.0.1 to ^8.5.1 to leverage latest improvements

Testing

  • Verified npm run dev works correctly with new config
  • Verified production build (npm run build) still works as expected
  • Confirmed dev builds skip type generation and legacy output

Notes

  • Production builds remain unchanged and continue to generate both modern and legacy outputs with type definitions
  • The dev config inherits all settings from modernConfig and only overrides what's necessary for optimization

@hiteshshetty-dev hiteshshetty-dev marked this pull request as ready for review January 16, 2026 12:28
@hiteshshetty-dev hiteshshetty-dev requested review from a team as code owners January 16, 2026 12:28
@github-actions
Copy link

github-actions bot commented Jan 16, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 71.7% 8051 / 11228
🔵 Statements 71.7% 8051 / 11228
🔵 Functions 74.82% 321 / 429
🔵 Branches 85.47% 1212 / 1418
File CoverageNo changed files found.
Generated in workflow #738 for commit 5aa5327 by the Vitest Coverage Report Action

@hiteshshetty-dev hiteshshetty-dev changed the base branch from main to stage_v4 January 16, 2026 12:39
@hiteshshetty-dev hiteshshetty-dev changed the base branch from stage_v4 to develop_v4 January 16, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants