mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Simplify sourceURL code and ensure source maps work avoid compat issues.
Former-commit-id: 5b64703eaebc65c443d6b9d3699d448c253e70c1
This commit is contained in:
@@ -371,7 +371,7 @@
|
||||
fs.unlinkSync(mapPath);
|
||||
|
||||
output = output
|
||||
.replace(/[\s;]*$/, '\n//@ sourceMappingURL=' + path.basename(mapPath));
|
||||
.replace(/[\s;]*$/, '\n/*\n//@ sourceMappingURL=' + path.basename(mapPath)) + '\n*/';
|
||||
|
||||
mapOutput = mapOutput
|
||||
.replace(/("file":)""/, '$1"' + path.basename(outputPath) + '"')
|
||||
|
||||
Reference in New Issue
Block a user