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

Commit a229e10

Browse files
fix(index): CSS module sorting (extractedChunk.modules.sort(cb) => extractedChunk.sortModules(cb))
1 parent 55f2cf0 commit a229e10

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
@@ -194,7 +194,7 @@ class ExtractTextPlugin {
194194
compilation.plugin('additional-assets', (callback) => {
195195
extractedChunks.forEach((extractedChunk) => {
196196
if (extractedChunk.getNumberOfModules()) {
197-
extractedChunk.modules.sort((a, b) => {
197+
extractedChunk.sortModules((a, b) => {
198198
if (!options.ignoreOrder && isInvalidOrder(a, b)) {
199199
compilation.errors.push(new OrderUndefinedError(a.getOriginalModule()));
200200
compilation.errors.push(new OrderUndefinedError(b.getOriginalModule()));

0 commit comments

Comments
 (0)