Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

Reverting change to use cached fs #44

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function loader(...args) {
let cache = true;

const toDepDetails = (dep, mapCallback) => {
this.fs.stat(dep, (err, stats) => {
fs.stat(dep, (err, stats) => {
if (err) {
mapCallback(err);
return;
Expand Down Expand Up @@ -110,7 +110,7 @@ function pitch(remainingRequest, prevRequest, dataInput) {
return;
}
async.each(cacheData.dependencies.concat(cacheData.contextDependencies), (dep, eachCallback) => {
this.fs.stat(dep.path, (statErr, stats) => {
fs.stat(dep.path, (statErr, stats) => {
if (statErr) {
eachCallback(statErr);
return;
Expand Down