Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 28171b2

Browse files
committed
refactor: Chunk.modules deprecation warning
BREAKING CHANGE: Updates to `Chunk.mapModules`. This release is not backwards compatible with `Webpack 2.x` due to breaking changes in webpack/webpack#4764
1 parent 292e217 commit 28171b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class ExtractTextPlugin {
144144
async.forEach(chunks, (chunk, callback) => { // eslint-disable-line no-shadow
145145
const extractedChunk = extractedChunks[chunks.indexOf(chunk)];
146146
const shouldExtract = !!(options.allChunks || isInitialOrHasNoParents(chunk));
147-
async.forEach(chunk.modules.slice(), (module, callback) => { // eslint-disable-line no-shadow
147+
async.forEach(chunk.mapModules((c) => { return c; }), (module, callback) => { // eslint-disable-line no-shadow, arrow-body-style
148148
let meta = module[NS];
149149
if (meta && (!meta.options.id || meta.options.id === id)) {
150150
const wasExtracted = Array.isArray(meta.content);

0 commit comments

Comments
 (0)