We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 392ab65 commit f4067b2Copy full SHA for f4067b2
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