We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a16432 commit e854933Copy full SHA for e854933
src/index.js
@@ -45,8 +45,11 @@ function loader(content) {
45
46
render(sassOptions, (error, result) => {
47
if (error) {
48
- // `node-sass` returns POSIX paths
49
- this.addDependency(path.normalize(error.file));
+ // There are situations when the `file` property do not exist
+ if (error.file) {
50
+ // `node-sass` returns POSIX paths
51
+ this.addDependency(path.normalize(error.file));
52
+ }
53
54
callback(new SassError(error));
55
0 commit comments