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.