Skip to content

Commit 01b3094

Browse files
committed
docs(minify): TODO to swap composeSourceMaps for a webpack-sources helper
`SourceMapSource` already composes one level via `innerSourceMap`; once webpack-sources exposes that as a public helper (or an n-step `SourceMapSource`), this in-house composer can be retired.
1 parent 7d463b2 commit 01b3094

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/minify.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ function encodeMappings(decoded) {
9393
* the minimizer. `currentMap` represents `name → step-output` and
9494
* `prevMap` represents `original → name`; the result represents
9595
* `original → step-output`.
96+
*
97+
* TODO: replace with a webpack-sources helper once one is exposed —
98+
* `SourceMapSource` already composes one level via `innerSourceMap`,
99+
* see https://github.com/webpack/webpack-sources for the proposal to
100+
* expose it as a public `composeSourceMaps` (or n-step `SourceMapSource`).
96101
* @param {RawSourceMap | undefined} currentMap map produced by the minimizer
97102
* @param {RawSourceMap | undefined} prevMap input source map fed to the minimizer
98103
* @param {string} name name of the asset that the current map points to

0 commit comments

Comments
 (0)