You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When file.css is missing, LESS still tries to generate a source map and fails in SourceMapOutput.add since this._contentsMap[fileInfo.filename] is null for the optional, missing import.
Disabling source maps (or supplying file.css) allows the build to complete successfully.
The text was updated successfully, but these errors were encountered:
mmelvin0
changed the title
@import (inline, optional) with fails with source maps enabled
@import (inline, optional) fails with source maps enabled
May 29, 2015
A simple guard around this._contentsMap[fileInfo.filename] might be okay.. That or better, look at where sourcemap gets its list of fileInfo's and make optional not present imports not add to that list (prob. In import manager or the import node)
I originally changed what Import.eval() was returning so it didn't have a null filename, but opted for this change to ImportVisitor instead as it seemed simpler and uses already existing hooks for skipping an import.
If I do the following:
When
file.css
is missing, LESS still tries to generate a source map and fails inSourceMapOutput.add
sincethis._contentsMap[fileInfo.filename]
isnull
for the optional, missing import.Disabling source maps (or supplying
file.css
) allows the build to complete successfully.The text was updated successfully, but these errors were encountered: