Description
When using Vitest, I get warnings like:
Sourcemap for "mypath/node_modules/.pnpm/redis@5.10.0/node_modules/redis/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.
Node.js Version
v24.11.0
Redis Server Version
No response
Node Redis Version
5.10.0
Platform
MacOS
Logs
Sourcemap for "mypath/node_modules/.pnpm/redis@5.10.0/node_modules/redis/dist/index.js" points to missing source files
Description
When using Vitest, I get warnings like:
The published sourcemap references source files that aren't included in the package.
Suggested fix: Enable
inlineSourcesintsconfig.jsonto embed the source content directly in the.mapfiles:{ "compilerOptions": { "sourceMap": true, "inlineSources": true } }This resolves the warnings without adding extra files to the package.
Node.js Version
v24.11.0
Redis Server Version
No response
Node Redis Version
5.10.0
Platform
MacOS
Logs