For folks that want to use the script tag to load the browser script.
<script
data-key={API_TOKEN}
data-url={API_URL}
data-version={GIT_COMMIT_SHA || "1.0.0"}
data-environment={ENVIRONMENT}
src={'https://unpkg.com/@tinycatch/browser-script@1.0.12/dist/browser-script.js'}
/>
We use unpkg to serve the browser script.
Example:
https://unpkg.com/@tinycatch/browser-script@1.0.12/dist/browser-script.js
This doesn't change much, the core logic is within ../shared-browser.