Skip to content

Commit 47578e5

Browse files
refactor: drop the minimizer list helper nothing calls any more
Its only caller was the guard that asked whether anything minified at all, and that question has no answer to give now that something always does. Its own description still said an empty list was `minify: false`, which is no longer a thing to say.
1 parent 2863339 commit 47578e5

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

‎src/index.js‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,17 +1468,6 @@ class MinimizerPlugin {
14681468
return this.generators().some((one) => one.type !== "asset");
14691469
}
14701470

1471-
/**
1472-
* The minimizers as a list, whichever shape they were written in. Empty is
1473-
* `minify: false`, which is what every pass over them then does nothing for.
1474-
* @private
1475-
* @param {EXPECTED_ANY} implementation one implementation, or an array
1476-
* @returns {EXPECTED_ANY[]} them
1477-
*/
1478-
minimizerImplementations(implementation) {
1479-
return Array.isArray(implementation) ? implementation : [implementation];
1480-
}
1481-
14821471
/**
14831472
* Every name the functions this plugin runs mark an asset with, which is
14841473
* what stats have to know how to print.

‎types/index.d.ts‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,6 @@ declare class MinimizerPlugin<T = import("terser").MinifyOptions> {
133133
* @returns {boolean} true when one does
134134
*/
135135
private hasModuleGenerator;
136-
/**
137-
* The minimizers as a list, whichever shape they were written in. Empty is
138-
* `minify: false`, which is what every pass over them then does nothing for.
139-
* @private
140-
* @param {EXPECTED_ANY} implementation one implementation, or an array
141-
* @returns {EXPECTED_ANY[]} them
142-
*/
143-
private minimizerImplementations;
144136
/**
145137
* Every name the functions this plugin runs mark an asset with, which is
146138
* what stats have to know how to print.

0 commit comments

Comments
 (0)