Sha256: 3dd156b2d4849388762a2a38416661e1243f459f6f06a747810f23d86e0eca32
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
"use strict"; class ContextExclusionPlugin { constructor(negativeMatcher) { this.negativeMatcher = negativeMatcher; } apply(compiler) { compiler.plugin("context-module-factory", (cmf) => { cmf.plugin("context-module-files", (files) => { return files.filter(filePath => !this.negativeMatcher.test(filePath)); }); }); } } module.exports = ContextExclusionPlugin;
Version data entries
3 entries across 3 versions & 2 rubygems