Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
daydayhappychao committed Jun 2, 2022
1 parent e4f61cf commit b79500c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/FileSystemInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
const { create: createResolver } = require("enhanced-resolve");
const nodeModule = require("module");
const asyncLib = require("neo-async");
const { isAbsolute } = require('path');
const { isAbsolute } = require("path");
const AsyncQueue = require("./util/AsyncQueue");
const StackedCacheMap = require("./util/StackedCacheMap");
const createHash = require("./util/createHash");
Expand Down Expand Up @@ -1634,7 +1634,9 @@ class FileSystemInfo {
let request = relative(this.fs, context, childPath);
if (request.endsWith(".js")) request = request.slice(0, -3);
request = request.replace(/\\/g, "/");
if (!request.startsWith("../") && !isAbsolute(request)) request = `./${request}`;
if (!request.startsWith("../") && !isAbsolute(request)) {
request = `./${request}`;
}
push({
type: RBDT_RESOLVE_CJS_FILE,
context,
Expand Down

0 comments on commit b79500c

Please sign in to comment.