Visitar URL original
refactor: logic · webpack/enhanced-resolve@fcf99c7 · GitHub
Skip to content

Commit fcf99c7

Browse files
refactor: logic
1 parent a017080 commit fcf99c7

4 files changed

Lines changed: 283 additions & 135 deletions

File tree

‎lib/Resolver.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,16 @@ class Resolver {
528528
* @param {Context} context context information object
529529
* @param {string} path context path
530530
* @param {string} request request string
531+
* @param {ResolveContext=} resolveContext resolve context
531532
* @returns {string | false} result
532533
*/
533-
resolveSync(context, path, request) {
534+
resolveSync(context, path, request, resolveContext) {
534535
/** @type {Error | null | undefined} */
535536
let err;
536537
/** @type {string | false | undefined} */
537538
let result;
538539
let sync = false;
539-
this.resolve(context, path, request, {}, (_err, r) => {
540+
this.resolve(context, path, request, resolveContext || {}, (_err, r) => {
540541
err = _err;
541542
result = r;
542543
sync = true;

‎test/promise.test.js‎

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)