Skip to content

Commit 30a4e36

Browse files
committed
use const where applicable in IgnorePlugin
1 parent 46aa744 commit 30a4e36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/IgnorePlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class IgnorePlugin {
1111
}
1212

1313
apply(compiler) {
14-
let resourceRegExp = this.resourceRegExp;
15-
let contextRegExp = this.contextRegExp;
14+
const resourceRegExp = this.resourceRegExp;
15+
const contextRegExp = this.contextRegExp;
1616
compiler.plugin("normal-module-factory", (nmf) => {
1717
nmf.plugin("before-resolve", (result, callback) => {
1818
if(!result) return callback();

0 commit comments

Comments
 (0)