Skip to content

fix: Hook imports for ESM compatibility - #344

Closed
joao-imi wants to merge 1 commit into
masterfrom
fix-imports-2
Closed

joao-imi wants to merge 1 commit into
masterfrom
fix-imports-2

Conversation

@joao-imi

@joao-imi joao-imi commented Jan 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

Changes:

  • Renamed useHCaptcha.tsx -> useHCaptcha.jsx (file had no TypeScript, just wrong extension);
  • Added explicit .js extensions to all relative imports in hooks;
  • Added Jest moduleNameMapper to resolve .js → .jsx during tests;

@joao-imi joao-imi self-assigned this Jan 2, 2026
@joao-imi
joao-imi marked this pull request as ready for review January 2, 2026 22:08
@joao-imi
joao-imi requested a review from a team as a code owner January 2, 2026 22:08
@brdlyptrs

Copy link
Copy Markdown
Collaborator

@joao-imi the issue is the bundling part, imports within the source code should be fine as is.

@zoryana94 zoryana94 closed this Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants