def _should_transpile(self, dep: str | None) -> bool:
        """Check if a dependency should be transpiled.

        Args:
            dep: The dependency to check.

        Returns:
            True if the dependency should be transpiled.
        """
        return bool(self.transpile_packages) and (
            dep in self.transpile_packages
            or format.format_library_name(dep or "") in self.transpile_packages
        )
Check if a dependency should be transpiled.

        Args:
            dep: The dependency to check.

        Returns:
            True if the dependency should be transpiled.
        
reflex/components/component.py