Skip to content

Commit

Permalink
Check single before using it (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
shokmaster committed Jun 22, 2021
1 parent 230c4a1 commit ac79607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/rewritePaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function rewritePaths(error, file, contents, moduleContext, callb

const rewritten = contents.replace(useRegexp, (entire, importer, single, double, unquoted) => {
// Don't rewrite imports from built-ins
if (single.indexOf('sass:') === 0) {
if (single && single.indexOf('sass:') === 0) {
return entire;
}

Expand Down

0 comments on commit ac79607

Please sign in to comment.