summaryrefslogtreecommitdiff
path: root/node_modules/webpack/lib/ContextExclusionPlugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/webpack/lib/ContextExclusionPlugin.js')
-rw-r--r--node_modules/webpack/lib/ContextExclusionPlugin.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/node_modules/webpack/lib/ContextExclusionPlugin.js b/node_modules/webpack/lib/ContextExclusionPlugin.js
deleted file mode 100644
index 8b291072..00000000
--- a/node_modules/webpack/lib/ContextExclusionPlugin.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- MIT License http://www.opensource.org/licenses/mit-license.php
-*/
-
-"use strict";
-
-/** @typedef {import("./Compiler")} Compiler */
-/** @typedef {import("./ContextModuleFactory")} ContextModuleFactory */
-
-class ContextExclusionPlugin {
- /**
- * @param {RegExp} negativeMatcher Matcher regular expression
- */
- constructor(negativeMatcher) {
- this.negativeMatcher = negativeMatcher;
- }
-
- /**
- * Apply the plugin
- * @param {Compiler} compiler the compiler instance
- * @returns {void}
- */
- apply(compiler) {
- compiler.hooks.contextModuleFactory.tap("ContextExclusionPlugin", cmf => {
- cmf.hooks.contextModuleFiles.tap("ContextExclusionPlugin", files =>
- files.filter(filePath => !this.negativeMatcher.test(filePath))
- );
- });
- }
-}
-
-module.exports = ContextExclusionPlugin;