We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a52df8b commit eb8caebCopy full SHA for eb8caeb
src/index.js
@@ -30,7 +30,7 @@ export default (opts) => {
30
31
ongenerate(opts, bundle) {
32
let css = Object.entries(styles)
33
- .sort((a, b) => bundle.modules.indexOf(a[0]) - bundle.modules.indexOf(b[0]))
+ .sort((a, b) => Object.getOwnPropertyNames(bundle.modules).indexOf(a[0]) - Object.getOwnPropertyNames(bundle.modules).indexOf(b[0]))
34
.map(entry => entry[1])
35
.join('\n');
36
bundles[opts.file] = css;
0 commit comments