Skip to content

feat(source): export loader inline variant - #51

Merged
damian-rodriguez-imi merged 14 commits into
mainfrom
feat/add-loader-source-export
Jul 15, 2026
Merged

feat(source): export loader inline variant#51
damian-rodriguez-imi merged 14 commits into
mainfrom
feat/add-loader-source-export

Conversation

@damian-rodriguez-imi

@damian-rodriguez-imi damian-rodriguez-imi commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a @hcaptcha/loader/inline export containing the a new build loader as a string.

This allows consumers to bundle the loader instead of fetching it separately at runtime.

@damian-rodriguez-imi damian-rodriguez-imi self-assigned this Jul 13, 2026
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as ready for review July 13, 2026 14:57
@damian-rodriguez-imi
damian-rodriguez-imi requested review from a team as code owners July 13, 2026 14:57
@damian-rodriguez-imi damian-rodriguez-imi changed the title feat(source): export loader source feat(source): export loader inline variant Jul 13, 2026
@damian-rodriguez-imi
damian-rodriguez-imi force-pushed the feat/add-loader-source-export branch from 5149348 to b442f37 Compare July 13, 2026 19:56
@damian-rodriguez-imi
damian-rodriguez-imi force-pushed the feat/add-loader-source-export branch from b442f37 to abb8047 Compare July 13, 2026 19:56
Comment thread lib/esbuild.config.js Outdated
...config,
entryPoints: [resolve(SRC, 'browser.ts')],
format: 'iife',
outfile: resolve(DIST, 'index.browser.js'),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just keep this exported as browser.js rather than index.browser.js?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, addressed here: bf65d54

@damian-rodriguez-imi
damian-rodriguez-imi merged commit 29501e3 into main Jul 15, 2026
3 checks passed
@damian-rodriguez-imi
damian-rodriguez-imi deleted the feat/add-loader-source-export branch July 15, 2026 11:13
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