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) {
|
exec(parser) {
|
||||||
|
if (this.fileDependencies === true) {
|
||||||
|
parser.state.module.buildInfo.cacheable = false;
|
||||||
|
} else {
|
||||||
for (const fileDependency of this.fileDependencies) {
|
for (const fileDependency of this.fileDependencies) {
|
||||||
parser.state.module.buildInfo.fileDependencies.add(fileDependency);
|
parser.state.module.buildInfo.fileDependencies.add(fileDependency);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return this.fn();
|
return this.fn();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue