Document webpack change: feat(SourceMapDevToolPlugin): support append option as a function
webpack-bot opened this issue · comments
webpack bot commented
A pull request by @snitin315 was merged and maintainers requested a documentation change.
See pull request: webpack/webpack#17252
Summary
Fixes webpack/webpack#11497
Fixes webpack/webpack#783
🤖 Generated by Copilot at 5b8f508
This pull request adds a new feature to the SourceMapDevToolPlugin
and the EvalSourceMapDevToolPlugin
that allows the append
option to be a function that returns a custom source map URL comment. It also updates the schemas, types, and tests for these plugins to support the new feature.
Details
🤖 Generated by Copilot at 5b8f508
- Allow
append
option to be a function that returns a custom source map URL comment forSourceMapDevToolPlugin
andEvalSourceMapDevToolPlugin
(link, link, link, link, link, link, link, link) - Add a test case for the
append
function option usingsome-test.js
as an example chunk (link, link, link) - Throw an error if the
append
function option is used without thefilename
option (link)