Skip to content

Sourcemap references missing source files #343

@baraknaveh

Description

@baraknaveh

When using Vitest, I get warnings like:

Sourcemap for "mypath/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/index.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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions