Skip to content

Commit 911cd63

Browse files
committed
skip annotation on files that are in ignoredFiles
1 parent 06b41bd commit 911cd63

File tree

1 file changed

+6
-0
lines changed
  • packages/bundler-plugin-core/src

1 file changed

+6
-0
lines changed

packages/bundler-plugin-core/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,12 @@ export function createComponentNameAnnotateHooks(
627627
return null;
628628
}
629629

630+
const isIgnoredFile = ignoredFiles?.some((file) => idWithoutQueryAndHash.endsWith(file));
631+
if (isIgnoredFile) {
632+
console.log(`FOUND IGNORED FILE: ${idWithoutQueryAndHash}`);
633+
return null;
634+
}
635+
630636
// We will only apply this plugin on jsx and tsx files
631637
if (![".jsx", ".tsx"].some((ending) => idWithoutQueryAndHash.endsWith(ending))) {
632638
return null;

0 commit comments

Comments
 (0)