Skip to content

Commit 46f3fa2

Browse files
committed
chore(js): add react-grab to clerk-js sandbox
Loads react-grab from unpkg in the sandbox template so component locations can be inspected during local development. The sandbox has no production build, so the script is intrinsically dev-only.
1 parent 4e08924 commit 46f3fa2

4 files changed

Lines changed: 152 additions & 1 deletion

File tree

.changeset/old-months-grow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/clerk-js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"bundlewatch": "^0.4.2",
115115
"jsdom": "26.1.0",
116116
"minimatch": "^10.2.5",
117+
"react-grab": "^0.1.37",
117118
"webpack-merge": "^5.10.0"
118119
},
119120
"engines": {

packages/clerk-js/sandbox/template.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
}
3737
})();
3838
</script>
39+
<!-- React Grab (development-only: this template is only used by `pnpm dev:sandbox`) -->
40+
<script
41+
src="//unpkg.com/react-grab/dist/index.global.js"
42+
crossorigin="anonymous"
43+
></script>
3944
<script>
4045
class NavLink extends HTMLElement {
4146
connectedCallback() {

0 commit comments

Comments
 (0)