12345678910111213141516171819202122232425262728293031323334353637383940 |
- "use strict";
- class AddManagedPathsPlugin {
-
- constructor(managedPaths, immutablePaths, unmanagedPaths) {
- this.managedPaths = new Set(managedPaths);
- this.immutablePaths = new Set(immutablePaths);
- this.unmanagedPaths = new Set(unmanagedPaths);
- }
-
- apply(compiler) {
- for (const managedPath of this.managedPaths) {
- compiler.managedPaths.add(managedPath);
- }
- for (const immutablePath of this.immutablePaths) {
- compiler.immutablePaths.add(immutablePath);
- }
- for (const unmanagedPath of this.unmanagedPaths) {
- compiler.unmanagedPaths.add(unmanagedPath);
- }
- }
- }
- module.exports = AddManagedPathsPlugin;
|