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:
8
8
- EugeneHlushko
9
9
- FadySamirSadek
10
10
- iamakulov
11
+ - chenxsan
11
12
---
12
13
13
14
IgnorePlugin 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
19
20
20
21
``` javascript
21
22
new webpack.IgnorePlugin ({ resourceRegExp, contextRegExp });
22
- // Supported in webpack 4 and earlier, unsupported in webpack 5:
23
- new webpack.IgnorePlugin (resourceRegExp, [contextRegExp]);
24
23
```
25
24
26
25
## Using filter functions
27
26
28
27
- ` 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.
30
28
31
29
``` javascript
32
30
new webpack.IgnorePlugin ({
You can’t perform that action at this time.
0 commit comments