Skip to content

Commit eb8f862

Browse files
authored
docs(plugins): clean up webpack 4 related content (webpack#5447)
1 parent 42a153c commit eb8f862

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/content/plugins/ignore-plugin.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ contributors:
88
- EugeneHlushko
99
- FadySamirSadek
1010
- iamakulov
11+
- chenxsan
1112
---
1213

1314
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
1920

2021
```javascript
2122
new 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
3230
new webpack.IgnorePlugin({

0 commit comments

Comments
 (0)