Skip to content

Commit

Permalink
Merge branch 'develop' into remove-clickElementById/ohcnetwork#8929
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 authored Nov 8, 2024
2 parents 9a0a15e + 6bd2aa8 commit b7950cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/treeShakeCareIcons.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Plugin } from "vite";
import * as fs from "fs";
import * as path from "path";
import { globSync } from "glob";
import * as path from "path";
import { Plugin } from "vite";

/**
* Interface defining options for the treeShakeUniconPathsPlugin.
Expand Down Expand Up @@ -48,7 +48,7 @@ export function treeShakeCareIcons(
}
// Finds all used icon names within the project's source files (`.tsx` or `.res` extensions).
function getAllUsedIconNames() {
const files = globSync(path.resolve(rootDir, "src/**/*.{tsx,res}"));
const files = globSync(path.resolve(rootDir, "{apps,src}/**/*.{tsx,res}"));
const usedIconsArray: string[] = [];

files.forEach((file) => {
Expand Down

0 comments on commit b7950cd

Please sign in to comment.