Conversation
} | ||
mapping.originalLine = original.line; | ||
mapping.originalColumn = original.column; | ||
if (original.name != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '!==' to compare with 'null'.
Too many errors. (10% scanned).
if (aSourceMapPath != null) { | ||
mapping.source = util.join(aSourceMapPath, mapping.source) | ||
} | ||
if (sourceRoot != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '!==' to compare with 'null'.
// Copy mapping | ||
mapping.source = original.source; | ||
if (aSourceMapPath != null) { | ||
mapping.source = util.join(aSourceMapPath, mapping.source) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
if (original.source != null) { | ||
// Copy mapping | ||
mapping.source = original.source; | ||
if (aSourceMapPath != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '!==' to compare with 'null'.
line: mapping.originalLine, | ||
column: mapping.originalColumn | ||
}); | ||
if (original.source != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '!==' to compare with 'null'.
// Find mappings for the "sourceFile" | ||
this._mappings.unsortedForEach(function (mapping) { | ||
if (mapping.source === sourceFile && mapping.originalLine != null) { | ||
// Check if it can be mapped by the source map, then update the mapping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
|
||
// Find mappings for the "sourceFile" | ||
this._mappings.unsortedForEach(function (mapping) { | ||
if (mapping.source === sourceFile && mapping.originalLine != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '!==' to compare with 'null'.
if (sourceRoot != null) { | ||
sourceFile = util.relative(sourceRoot, sourceFile); | ||
} | ||
// Applying the SourceMap can add and remove items from the sources and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
} | ||
var sourceRoot = this._sourceRoot; | ||
// Make "sourceFile" relative if an absolute Url is passed. | ||
if (sourceRoot != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '!==' to compare with 'null'.
if (aSourceMapConsumer.file == null) { | ||
throw new Error( | ||
'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + | ||
'or the source map\'s "file" property. Both were omitted.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixed double and single quotes.
if (aSourceFile == null) { | ||
if (aSourceMapConsumer.file == null) { | ||
throw new Error( | ||
'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
Mixed double and single quotes.
var sourceFile = aSourceFile; | ||
// If aSourceFile is omitted, we will use the file property of the SourceMap | ||
if (aSourceFile == null) { | ||
if (aSourceMapConsumer.file == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '===' to compare with 'null'.
function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { | ||
var sourceFile = aSourceFile; | ||
// If aSourceFile is omitted, we will use the file property of the SourceMap | ||
if (aSourceFile == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '===' to compare with 'null'.
SourceMapGenerator.prototype.applySourceMap = | ||
function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { | ||
var sourceFile = aSourceFile; | ||
// If aSourceFile is omitted, we will use the file property of the SourceMap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
* relative to the SourceMapGenerator. | ||
*/ | ||
SourceMapGenerator.prototype.applySourceMap = | ||
function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
* @param aSourceMapPath Optional. The dirname of the path to the source map | ||
* to be applied. If relative, it is relative to the SourceMapConsumer. | ||
* This parameter is needed when the two source maps aren't in the same | ||
* directory, and the source map to be applied contains relative source |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long.
Scratch that. I was just being lazy. I ignored the autofiles from being linted with e465ba5. |
edd3c58
to
bea03db
Compare
@meiqimichelle so this is still failing, but in a different way. The site runs fine locally and forums suggest that the build error we are getting now on Circle will be intermittent. I'm going to put this on hold and try to rebuild it later. |
0985b9f
to
3170f14
Compare
3170f14
to
da5a914
Compare
@meiqimichelle I reviewed this again, and it has my stamp of approval to merge. @shawnbot, what do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃憤 LGTM!
Cool! |
Fixes issue(s) build issues on #2185
馃槑 PREVIEW
Changes proposed in this pull request:
circle.yml
config to run dependencies and build processes in the proper ordercircle.yml
config to run the newupdate-webpack
command./cc @meiqimichelle @shawnbot