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 a93b61bCopy full SHA for a93b61b
src/index.js
@@ -29,8 +29,10 @@ export default (opts) => {
29
},
30
31
ongenerate(opts, bundle) {
32
+ let modules = Array.isArray(bundle.modules) ? bundle.modules
33
+ : Object.getOwnPropertyNames(bundle.modules)
34
let css = Object.entries(styles)
- .sort((a, b) => bundle.modules.indexOf(a[0]) - bundle.modules.indexOf(b[0]))
35
+ .sort((a, b) => modules.indexOf(a[0]) - modules.indexOf(b[0]))
36
.map(entry => entry[1])
37
.join('\n');
38
bundles[opts.file] = css;
0 commit comments