Skip to content

JITI_SOURCE_MAPS option is not included in cache params #347

@connor4312

Description

@connor4312

Environment

Node.js 22

Reproduction

  1. Run this file without any special settings. Notice there's no sourcemap for main.ts
  2. In the API turn on sourcemaps, or set JITI_SOURCE_MAPS
  3. Run it again. Notice there's still no sourcemap for main.ts 🐛
  4. Set JITI_FS_CACHE=0, and notice sourcemaps now work

Describe the bug

Changing the Jiti options should invalidate any existing cache

Additional context

Reported as an issue for the VS Code debugger in microsoft/vscode-js-debug#2149

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions