Skip to content

Commit 9b8c40b

Browse files
authored
Merge pull request webpack#5015 from webpack/bugfix/module.chunks
fixes incorrect deprecation
2 parents 1de873c + c0bf82c commit 9b8c40b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/Module.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Object.defineProperty(Module.prototype, "entry", {
245245

246246
Object.defineProperty(Module.prototype, "chunks", {
247247
configurable: false,
248-
get: util.deprecate(() => {
248+
get: util.deprecate(function() {
249249
return Array.from(this._chunks);
250250
}, "Module.chunks: Use Module.forEachChunk/mapChunks/getNumberOfChunks/isInChunk/addChunk/removeChunk instead"),
251251
set() {

0 commit comments

Comments
 (0)