Skip to content

Commit 82542e7

Browse files
committed
Fix resolving sass files
1 parent 48bee9b commit 82542e7

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

packages/app/src/sandbox/eval/transpilers/sass/worker/sass-worker.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,11 @@ const resolveSass = (fs, p, path) => {
119119
extensions: ['.scss', '.css', '.sass'],
120120
moduleDirectory: ['node_modules'],
121121
packageFilter,
122-
isFile: async (pp, cb) => {
122+
isFile: async (pp, c, cb) => {
123123
const exists = !!(await getExistingPath(fs, pp));
124+
const callback = c || cb;
124125

125-
if (!exists) {
126-
const err = new Error('Could not find ' + pp);
127-
// $FlowIssue
128-
err.code = 'ENOENT';
129-
130-
return cb(err);
131-
}
132-
133-
return cb(null, exists);
126+
return callback(null, exists);
134127
},
135128
readFile: async (pp, encoding, cb) => {
136129
const foundPath = await getExistingPath(fs, pp);

0 commit comments

Comments
 (0)