Options objects passed by reference to loader, and first write to map property, share this value in next invocations. It cause incorrect filename in sourcemaps in subsequent calls (because map === undefined check is not passed).
The returned options object is read-only. It may be re-used across multiple invocations. If you pass it on to another library, make sure to make a deep copy of it
So, this MR about it. Otherwise sourcemaps of annotated files are skipped in final bundle.
Options objects passed by reference to loader, and first write to map property, share this value in next invocations. It cause incorrect filename in sourcemaps in subsequent calls (because map === undefined check is not passed).
Look at documentation for loaderUtils.getOptions:
So, this MR about it. Otherwise sourcemaps of annotated files are skipped in final bundle.