diff --git a/src/processResult.js b/src/processResult.js index 9b91e0e7..1b9bdd16 100644 --- a/src/processResult.js +++ b/src/processResult.js @@ -22,6 +22,9 @@ function processResult(loaderContext, resultPromise) { }; }, (lessError) => { + if (lessError.filename) { + loaderContext.addDependency(lessError.filename); + } throw formatLessError(lessError); } )