We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c72ad16 commit ff6b17fCopy full SHA for ff6b17f
packages/core/src/loader.ts
@@ -1,5 +1,5 @@
1
import { lstatSync, readdirSync, statSync } from "fs";
2
-import { join } from "path";
+import { join, sep } from "path";
3
4
import { LesyCommand } from "./command";
5
import { LesyFeature } from "./feature";
@@ -193,7 +193,9 @@ class LesyLoader {
193
}
194
195
private isAllowedFile(path: string) {
196
- if (path.startsWith("_")) return false;
+ const pathSegments = path.split(sep);
197
+ const fileName = pathSegments[pathSegments.length - 1];
198
+ if (fileName.startsWith("_")) return false;
199
const ext = path.split(".");
200
const lastIndex = ext.length - 1;
201
if (process.env.LESY_LANG === "js") {
0 commit comments