Skip to content

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
alextaing committed Oct 20, 2023
1 parent a6e28fc commit f1ca308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/studio-plugin/src/parsers/StudioSourceFileParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class StudioSourceFileParser {
parseCssImports(): string[] {
const cssImports: string[] = [];

const getImportAbsoluteFilepath = (importPath: string) => {
const getAbsoluteImportFilepath = (importPath: string) => {
if (upath.isAbsolute(importPath)) {
return upath.toUnix(importPath);
}
Expand All @@ -146,7 +146,7 @@ export default class StudioSourceFileParser {
const { source: importPath } =
StaticParsingHelpers.parseImport(importDeclaration);
if (importPath.endsWith(".css")) {
cssImports.push(getImportAbsoluteFilepath(importPath));
cssImports.push(getAbsoluteImportFilepath(importPath));
}
});
return cssImports;
Expand Down

0 comments on commit f1ca308

Please sign in to comment.