Skip to content

Commit

Permalink
fix: AssetInfo modules used for chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
SASUKE40 committed Apr 18, 2020
1 parent b0817db commit df71f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ export default (options = {}) => {
const { modules } = bundle[normalizePath(path.relative(dir, file))]

if (modules) {
const fileList = Object.keys(modules)
const moduleIds = [...this.moduleIds]
entries.sort(
(a, b) => fileList.indexOf(a.id) - fileList.indexOf(b.id)
(a, b) => moduleIds.indexOf(a.id) - moduleIds.indexOf(b.id)
)
}

Expand Down

0 comments on commit df71f37

Please sign in to comment.