Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102344377
AddBuildDependenciesPlugin.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 19, 17:36
Size
716 B
Mime Type
text/x-c++
Expires
Fri, Feb 21, 17:36 (2 d)
Engine
blob
Format
Raw Data
Handle
24335183
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
AddBuildDependenciesPlugin.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/** @typedef {import("../Compiler")} Compiler */
class AddBuildDependenciesPlugin {
/**
* @param {Iterable<string>} buildDependencies list of build dependencies
*/
constructor(buildDependencies) {
this.buildDependencies = new Set(buildDependencies);
}
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(
"AddBuildDependenciesPlugin",
compilation => {
compilation.buildDependencies.addAll(this.buildDependencies);
}
);
}
}
module.exports = AddBuildDependenciesPlugin;
Event Timeline
Log In to Comment