File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ contributors:
88 - EugeneHlushko
99 - FadySamirSadek
1010 - iamakulov
11+ - chenxsan
1112---
1213
1314IgnorePlugin prevents the generation of modules for ` import ` or ` require ` calls matching the regular expressions or filter functions:
@@ -19,14 +20,11 @@ IgnorePlugin prevents the generation of modules for `import` or `require` calls
1920
2021``` javascript
2122new webpack.IgnorePlugin ({ resourceRegExp, contextRegExp });
22- // Supported in webpack 4 and earlier, unsupported in webpack 5:
23- new webpack.IgnorePlugin (resourceRegExp, [contextRegExp]);
2423```
2524
2625## Using filter functions
2726
2827- ` checkResource (resource, context) ` A Filter function that receives ` resource ` and ` context ` as arguments, must return boolean.
29- - ` checkContext (context) ` was ** removed in webpack 5** as ` checkResource ` already gets context.
3028
3129``` javascript
3230new webpack.IgnorePlugin ({
You can’t perform that action at this time.
0 commit comments