When using Vitest, I get warnings like:
Sourcemap for mypath/node_modules/.pnpm/htmlparser2@8.0.2/node_modules/htmlparser2/lib/esm/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": {
"inlineSources": true
}
}
This resolves the warnings without adding extra files to the package.
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": { "inlineSources": true } }This resolves the warnings without adding extra files to the package.