Skip to content

Commit 045f308

Browse files
authored
Update SourceMapGenerator.php
1 parent e8e4df7 commit 045f308

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/SourceMap/SourceMapGenerator.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,19 @@ public function generateJson()
172172
// An optional source root, useful for relocating source files on a server or removing repeated values in the
173173
// 'sources' entry. This value is prepended to the individual entries in the 'source' field.
174174
$root = $this->options['sourceRoot'];
175+
175176
if ($root) {
176177
$sourceMap['sourceRoot'] = $root;
177-
// A list of symbol names used by the 'mappings' entry.
178178
}
179179

180180
// A list of original sources used by the 'mappings' entry.
181181
$sourceMap['sources'] = array();
182-
foreach($this->sources as $source_uri => $source_filename) {
182+
183+
foreach ($this->sources as $source_uri => $source_filename) {
183184
$sourceMap['sources'][] = $this->normalizeFilename($source_filename);
184185
}
186+
187+
// A list of symbol names used by the 'mappings' entry.
185188
$sourceMap['names'] = array();
186189

187190
// A string with the encoded mapping data.

0 commit comments

Comments
 (0)