Skip to content

Commit

Permalink
Fixed a minor bug when working with remote files
Browse files Browse the repository at this point in the history
  • Loading branch information
paras20xx committed Sep 19, 2020
1 parent f810404 commit 32ca06e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ var utils = {
if (removeSourceMappingURL) {
// LAZY: This approach is simple enough and seems to work well for the common known cases.
// As and when any issues are encountered, this code can be improved.
code = code.split('//# sourceMappingURL=')[0];
code = String(code).split('//# sourceMappingURL=')[0];
data.consoleCommand = data.consoleCommand || {};
data.consoleCommand.sourceMappingUrl = 'Note: Removed "sourceMappingURL"';
}

if (needsUglify) {
var result = UglifyJS.minify(
code,
String(code),
// Equivalent to: uglifyjs <source> --compress sequences=false --beautify beautify=false,semicolons=false,comments=some --output <destination>
{
compress: {
Expand Down

0 comments on commit 32ca06e

Please sign in to comment.