Skip to content

Commit

Permalink
refactor: code (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-Bernardito committed Feb 2, 2021
1 parent 816d168 commit 4eb9ff0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,10 @@ async function createEvaluator(loaderContext, code, options) {
preferRelative: true,
});

// Get cwd for `fastGlob()`
// No need extra options, because they do not used when `resolveToContext` is `true`
const globResolve = loaderContext.getResolve({
dependencyType: "stylus",
conditionNames: ["styl", "stylus", "style"],
mainFields: ["styl", "style", "stylus", "main", "..."],
mainFiles: ["index", "..."],
resolveToContext: true,
preferRelative: true,
});
Expand Down

0 comments on commit 4eb9ff0

Please sign in to comment.