Skip to content
Permalink
Browse files

fix: Actually fix erroneous deletes from rollup

  • Loading branch information...
tivac committed Jul 5, 2018
1 parent c659e44 commit caee07d55601637b6ffbb45437237efefb17c77d
Showing with 2 additions and 9 deletions.
  1. +2 −9 packages/rollup/rollup.js
@@ -47,16 +47,9 @@ module.exports = function(opts) {

// If the file is being re-processed we need to remove it to
// avoid cache staleness issues
if(id in processor.files) {
let files = [ id ];
if(runs && (id in processor.files)) {
const files = processor.dependencies(id).concat(id);

// First time build should only remove the file and any files that depend on it
// but watchs update need to clear out the file, any files that depend on it,
// AND any files it depends on
if(runs) {
files = processor.dependencies(id).concat(files);
}

files.forEach((file) => processor.remove(file));
}

0 comments on commit caee07d

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