DefinePlugin: reevaluate runtime values on watch mode when fileDependecies is true

closes #7717
This commit is contained in:
Sergey Melyukov 2018-10-24 22:34:03 +03:00
parent a4feb6e15f
commit dae811b083
1 changed files with 6 additions and 2 deletions

View File

@ -21,9 +21,13 @@ class RuntimeValue {
}
exec(parser) {
if (this.fileDependencies === true) {
parser.state.module.buildInfo.cacheable = false;
} else {
for (const fileDependency of this.fileDependencies) {
parser.state.module.buildInfo.fileDependencies.add(fileDependency);
}
}
return this.fn();
}