Skip to content
Permalink
Browse files

fix: rollup outputs non .css files in the correct order

Depends on new `processor.has()` API
  • Loading branch information...
tivac committed Jan 9, 2019
1 parent df5ac6f commit 2b8fec60d7955c96049d882ed16c3476af314718
Showing with 5 additions and 3 deletions.
  1. +5 −3 packages/rollup/rollup.js
@@ -175,13 +175,15 @@ module.exports = (opts) => {
let counter = 1;

// Get CSS files being used by this chunk
const styles = Object.keys(modules).filter(filter);
const styles = Object.keys(modules).filter((file) => processor.has(file));

// Get dependency chains for each css file & record them into the usage graph
styles.forEach((style) => {
processor
.dependencies(style)
.forEach((file) => css.add(file));

css.add(style);

processor.dependencies(style).forEach((file) => css.add(file));
});

// Want to use source chunk name when code-splitting, otherwise match bundle name

0 comments on commit 2b8fec6

Please sign in to comment.
You can’t perform that action at this time.