Skip to content

Commit ea0e296

Browse files
committed
[UTILS] Fix map sources accounts for empty sourcesContent
1 parent 455c3f5 commit ea0e296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/fixMapSources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function fixMapSources(chunk, basePath) {
1515
const newSourcesComponents = [];
1616
let maxUpFolder = 0;
1717
for (let i = 0; i < map.sources.length; ++i) {
18-
const full = findFullPath(map.sources[i], map.sourcesContent[i].length, chunk.modules);
18+
const full = map.sourcesContent[i] && findFullPath(map.sources[i], map.sourcesContent[i].length, chunk.modules);
1919
if (full) {
2020
const relative = path.relative(basePath, full);
2121
const base = path.dirname(relative);

0 commit comments

Comments
 (0)