We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b373570 commit 1e862d7Copy full SHA for 1e862d7
src/SourceMap/SourceMapGenerator.php
@@ -174,9 +174,17 @@ public function generateJson()
174
$root = $this->options['sourceRoot'];
175
176
if ($root) {
177
+// $sourceMap['sourceRoot'] = $root;
178
+ // A list of symbol names used by the 'mappings' entry.
179
$sourceMap['names'] = array();
180
}
181
182
+ // A list of original sources used by the 'mappings' entry.
183
+ $sourceMap['sources'] = array();
184
+ foreach($this->sources as $source_uri => $source_filename) {
185
+ $sourceMap['sources'][] = $this->normalizeFilename($source_filename);
186
+ }
187
+
188
// A string with the encoded mapping data.
189
$sourceMap['mappings'] = $mappings;
190
0 commit comments