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.
sourcesContent
1 parent 455c3f5 commit ea0e296Copy full SHA for ea0e296
src/utils/fixMapSources.js
@@ -15,7 +15,7 @@ function fixMapSources(chunk, basePath) {
15
const newSourcesComponents = [];
16
let maxUpFolder = 0;
17
for (let i = 0; i < map.sources.length; ++i) {
18
- const full = findFullPath(map.sources[i], map.sourcesContent[i].length, chunk.modules);
+ const full = map.sourcesContent[i] && findFullPath(map.sources[i], map.sourcesContent[i].length, chunk.modules);
19
if (full) {
20
const relative = path.relative(basePath, full);
21
const base = path.dirname(relative);
0 commit comments