Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmckeb committed Feb 11, 2024
1 parent 52e30a3 commit a6d40b1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/helpers/getCssExports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,21 @@ export const getCssExports = ({

const aliasImporter: sass.FileImporter<'sync'> = {
findFileUrl(url) {
const exactFileUrl =
matchPath !== null
? matchPath(url, undefined, undefined, ['.sass', '.scss'])
: undefined;
const exactFileUrl = matchPath?.(url, undefined, undefined, [
'.sass',
'.scss',
]);

if (exactFileUrl) {
return new URL(`file://${exactFileUrl}`);
}

/**
* In case it didn't file the exact file it'll proceed to
* check other files matching the import process of SASS
* guidelines.
* @see {@link https://sass-lang.com/documentation/at-rules/import/#partials}
* @see {@link https://sass-lang.com/documentation/at-rules/import/#index-files}
/*
* In case it didn't find the exact file it'll proceed to
* check other files matching the import process of Sass
* guidelines:
* https://sass-lang.com/documentation/at-rules/import/#partials
* https://sass-lang.com/documentation/at-rules/import/#index-files
*/

// Checks for partials
Expand Down

0 comments on commit a6d40b1

Please sign in to comment.