Skip to content

Commit 62f5673

Browse files
kyvgmrmckeb
kyvg
authored andcommitted
fix/resolve-scss-extension
1 parent 148aca2 commit 62f5673

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
@import '@scss/_external.module.scss';
1+
@import '@scss/_external.module';
22
@import 'alias.scss';

src/helpers/getCssExports.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ export const getCssExports = ({
9999

100100
const aliasImporter: sass.FileImporter<'sync'> = {
101101
findFileUrl(url) {
102-
const newUrl = matchPath !== null ? matchPath(url) : undefined;
102+
const newUrl =
103+
matchPath !== null
104+
? matchPath(url, undefined, undefined, ['.sass', '.scss'])
105+
: undefined;
103106
return newUrl ? new URL(`file://${newUrl}`) : null;
104107
},
105108
};

0 commit comments

Comments
 (0)