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 using the new webpack@5.93.0binary generator option (see issue #962) the source map JSON is missing sourcesContent and has invalid webpack:///data:; content inside the sources array.
This also affects previous releases using modern or modern-compiler API option too.
Bug report
When using the new webpack@5.93.0
binary
generator option (see issue #962) the source map JSON is missingsourcesContent
and has invalidwebpack:///data:;
content inside thesources
array.This also affects previous releases using
modern
ormodern-compiler
API option too.Note: Unlike the legacy compiler, missing
sourcesContent
can be restored withsourceMapContents: true
sourceMapIncludeSources: true
but thesources
property remains invalid.Actual Behavior
Source map
sourcesContent
is missing andsources
content includes encoded contentIn Safari web inspector, this is logged with
Failed to load resource: unsupported URL
Expected Behavior
Source map
sourcesContent
is included by default andsources
content is correctly encodedHow Do We Reproduce?
See minimal reproduction repo in colinrotherham/sass-loader-source-maps
This follows the README asset module approach via the following rule:
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: