sourceRoot property of source maps may now be ignored, which can
be useful when resolving sources outside of the browser.resolveSources is now an object, not an array. The
old result array is available in the sourcesContent property.
(Backwards-incompatible change.)sources has been renamed to sourcesContent in the result object
of resolve. (Backwards-incompatible change.)resolveSources now also returns all sources fully resolved, in the
sourcesResolved property.resolve now contains the sourcesResolved
property from resolveSources.sourcesContent was mis-typed as sourceContents, which meant that
the sourcesContent property of source maps never was used when resolving
sources.)]}' are now parsed correctly. The spec
allows source maps to start with that character sequence to prevent XSSI
attacks.A source root such as /scripts/subdir is now treated as /scripts/subdir/
— that is, as a directory called “subdir”, not a file called “subdir”.
Pointing to a file as source root does not makes sense.