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 c659e44 commit caee07dCopy full SHA for caee07d
packages/rollup/rollup.js
@@ -47,16 +47,9 @@ module.exports = function(opts) {
47
48
// If the file is being re-processed we need to remove it to
49
// avoid cache staleness issues
50
- if(id in processor.files) {
51
- let files = [ id ];
+ if(runs && (id in processor.files)) {
+ const files = processor.dependencies(id).concat(id);
52
53
- // First time build should only remove the file and any files that depend on it
54
- // but watchs update need to clear out the file, any files that depend on it,
55
- // AND any files it depends on
56
- if(runs) {
57
- files = processor.dependencies(id).concat(files);
58
- }
59
-
60
files.forEach((file) => processor.remove(file));
61
}
62
0 commit comments