diff --git a/next.config.js b/next.config.js index 904aff2..9ece116 100644 --- a/next.config.js +++ b/next.config.js @@ -9,10 +9,10 @@ class CustomResolver { } apply(resolver) { - const target = resolver.ensureHook(this.target); - resolver - .getHook(this.source) - .tapAsync("CustomResolver", (request, resolveContext, callback) => { + const target = resolver.ensureHook(this.target); + resolver + .getHook(this.source) + .tapAsync("CustomResolver", (request, resolveContext, callback) => { // request.request is the string path we're resolving // match ~/[dir]/[path] @@ -56,8 +56,8 @@ class CustomResolver { request: selectedPath } - resolver.doResolve(target, newRequest, null, resolveContext, callback); - }); + resolver.doResolve(target, newRequest, null, resolveContext, callback); + }); } }