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
I found that sourceRoot does not necessarily exist, sometimes it equals undefined.
I look for some codes, and found that extract-loader, it uses extractExports function to transform, (Function toString()) sandbox.module.exports.
And the css-loader use cssWithMappingToString and the variables cssMapping.sourceRoot to concat string, but css-loader has been remove the sourceRoot before cssWithMappingToString, so that cssWithMappingToString can not found sourceRoot anymore, and sourceRoot always to undefined
I suggest css-loader can compatibles it, when the sourceRoot is undefined, or keeps the sourceRoot option.
I found that
sourceRoot
does not necessarily exist, sometimes it equalsundefined
.I look for some codes, and found that
extract-loader
, it usesextractExports
function to transform, (Function toString()
)sandbox.module.exports
.And the
css-loader
usecssWithMappingToString
and the variablescssMapping.sourceRoot
to concat string, but css-loader has been remove thesourceRoot
beforecssWithMappingToString
, so thatcssWithMappingToString
can not foundsourceRoot
anymore, andsourceRoot
always toundefined
I suggest
css-loader
can compatibles it, when thesourceRoot
is undefined, or keeps thesourceRoot
option.Environment
Expected Behavior
Would not prepend
undefined
Actual Behavior
Code
The text was updated successfully, but these errors were encountered: