Skip to content

Sourcemap references missing source files #2084

@baraknaveh

Description

@baraknaveh

When using Vitest, I get warnings like:

Sourcemap for "mypath/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js" points to missing source files

The published sourcemap references source files that aren't included in the package.

Suggested fix: Enable inlineSources in tsconfig.json to embed the source content directly in the .map files:

{
  "compilerOptions": {
    "sourceMap": true,
    "inlineSources": true
  }
}

This resolves the warnings without adding extra files to the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions