We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79fe265 commit 2a41681Copy full SHA for 2a41681
index.js
@@ -227,15 +227,15 @@ module.exports = function (options = {}) {
227
228
if (config.sourcemap && chunk.map) {
229
const len = sources.length;
230
- sources.push(chunk.map.sources[0]);
231
- if (sourcesContent) sourcesContent.push(chunk.map.sourcesContent[0]);
+ sources.push(...chunk.map.sources);
+ if (sourcesContent) sourcesContent.push(...chunk.map.sourcesContent);
232
233
const decoded = decode(chunk.map.mappings);
234
235
if (len > 0) {
236
decoded.forEach(line => {
237
line.forEach(segment => {
238
- segment[1] = len;
+ segment[1] += len;
239
});
240
241
}
0 commit comments