We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53e5709 commit e81f5bdCopy full SHA for e81f5bd
lib/snapshot-manager.js
@@ -391,7 +391,9 @@ class Manager {
391
392
const resolveSourceFile = mem(file => {
393
const sourceMap = findSourceMap(file);
394
- if (sourceMap === undefined) {
+ // Prior to Node.js 18.8.0, the value when a source map could not be found was `undefined`.
395
+ // This changed to `null` in <https://github.com/nodejs/node/pull/43875>. Check both.
396
+ if (sourceMap === undefined || sourceMap === null) {
397
return file;
398
}
399
0 commit comments