Closed
Description
I now get a null pointer exception
mappings: inputSourceMap.mappings,
This is because my prod build is not generating source maps and somehow the inputSourceMap is null (I am not setting it). The following code checks for undefined but not null.
If I change the following
if (sourceMap === undefined || inputSourceMap === undefined) { callback(null, output, sourceMap); return; }
to
if (!sourceMap || !inputSourceMap) { callback(null, output, sourceMap); return; }
everything works as expected.
Metadata
Metadata
Assignees
Labels
No labels