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

Commit

Permalink
fix(index): CSS module sorting (`extractedChunk.modules.sort(cb) => e…
Browse files Browse the repository at this point in the history
…xtractedChunk.sortModules(cb)`)
  • Loading branch information
michael-ciniawsky committed Jul 7, 2017
1 parent 55f2cf0 commit a229e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ExtractTextPlugin {
compilation.plugin('additional-assets', (callback) => {
extractedChunks.forEach((extractedChunk) => {
if (extractedChunk.getNumberOfModules()) {
extractedChunk.modules.sort((a, b) => {
extractedChunk.sortModules((a, b) => {
if (!options.ignoreOrder && isInvalidOrder(a, b)) {
compilation.errors.push(new OrderUndefinedError(a.getOriginalModule()));
compilation.errors.push(new OrderUndefinedError(b.getOriginalModule()));
Expand Down

0 comments on commit a229e10

Please sign in to comment.