Skip to content

Load the Castle browser SDK as a UMD from npm - #14

Merged
bartes merged 2 commits into
mainfrom
chore/castle-js-umd
Sep 8, 2026
Merged

Load the Castle browser SDK as a UMD from npm#14
bartes merged 2 commits into
mainfrom
chore/castle-js-umd

Conversation

@bartes

@bartes bartes commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Load the Castle browser SDK as a UMD from the npm install.

  • Request /vendor/castle-js/castle.umd.js and fall back to castle.browser.js when that file is absent.
  • Seed window.Castle from module.exports before the script tag, then configure with { pk } and mint tokens from window.__castle or Castle.
  • Keep the React account page on the ESM package and use the value returned by configure().
  • Pin @castleio/castle-js to ^2.8.5.

@bartes
bartes marked this pull request as ready for review September 7, 2026 16:29
@bartes
bartes merged commit bd3a0b6 into main Sep 8, 2026
6 checks passed
@bartes
bartes deleted the chore/castle-js-umd branch September 8, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant