Skip to content

Commit

Permalink
perf(less): less code
Browse files Browse the repository at this point in the history
  • Loading branch information
Anidetrix committed May 15, 2020
1 parent f37ec11 commit 2717427
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/loaders/less/importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ const getStylesFileManager = (less: Less): FileManagerInterface =>
return true;
}

supportsSync(): boolean {
return false;
}

async loadFile(filename: string, basedir: string): Promise<LoadedFile> {
const options = { basedir, extensions: [".less", ".css"] };

Expand Down
4 changes: 2 additions & 2 deletions src/typings/less.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ declare module "less" {
}

export interface LoadedFile {
contents: string;
filename: string;
contents?: string;
filename?: string;
}

export interface LoadedFileSync extends LoadedFile {
Expand Down

0 comments on commit 2717427

Please sign in to comment.