mirror of https://github.com/webpack/webpack.git
Merge pull request #8817 from huruji/master
feat(Chunk.js): ✨ size fn: Modify options to default parameter
This commit is contained in:
commit
5843e25205
|
|
@ -517,7 +517,7 @@ class Chunk {
|
|||
* @param {Object} options the size display options
|
||||
* @returns {number} the chunk size
|
||||
*/
|
||||
size(options) {
|
||||
size(options = {}) {
|
||||
return this.addMultiplierAndOverhead(this.modulesSize(), options);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue