mirror of https://github.com/webpack/webpack.git
DefinePlugin: reevaluate runtime values on watch mode when fileDependecies is true
closes #7717
This commit is contained in:
parent
a4feb6e15f
commit
dae811b083
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue