File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments