123456789101112131415161718192021222324252627282930313233 |
- "use strict";
- class AddBuildDependenciesPlugin {
-
- constructor(buildDependencies) {
- this.buildDependencies = new Set(buildDependencies);
- }
-
- apply(compiler) {
- compiler.hooks.compilation.tap(
- "AddBuildDependenciesPlugin",
- compilation => {
- compilation.buildDependencies.addAll(this.buildDependencies);
- }
- );
- }
- }
- module.exports = AddBuildDependenciesPlugin;
|