Skip to content

[Feature] Add JITI_FORCE to ignore and rebuild the cache #378

@kricsleo

Description

@kricsleo

Describe the feature

Currently, we have two options:

  • Reuse cache with fsCache enabled (default)
  • Disable cache with fsCache disabled

But in some scenarios (especially debugging, e.g., debugging output with different configs), we might want to clean the previous cache and rebuild it (if fsCache is enabled). It's pretty much like the vite --force.

Since adding jiti clean to just delete all the caches wouldn't be that necessary (mostly referenced: vitejs/vite#10986), I think adding JITI_FORCE would be a lightweight solution.

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions