Skip to content

Commit

Permalink
add support for .js.yak and .jsx.yak
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Aug 2, 2024
1 parent 025a5f5 commit 3c4e10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-yak/loaders/lib/resolveCrossFileSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async function parseFile(
loader: LoaderContext<{}>,
filePath: string,
): Promise<ParsedFile> {
const isYak = filePath.endsWith(".yak.ts") || filePath.endsWith(".yak.tsx");
const isYak = filePath.endsWith(".yak.ts") || filePath.endsWith(".yak.tsx") || filePath.endsWith(".yak.js") || filePath.endsWith(".yak.jsx");
const isTSX = filePath.endsWith(".tsx");

try {
Expand Down

0 comments on commit 3c4e10a

Please sign in to comment.