@prosopo/procaptcha-bundle 4.1.43 → 4.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vite.config.ts CHANGED
@@ -155,8 +155,19 @@ export default defineConfig(async ({ command, mode }) => {
155
155
  if (id.includes("@polkadot/keyring")) {
156
156
  return "web3Chunk";
157
157
  }
158
+ // util-crypto rides in the shared browser chunk rather than
159
+ // its own. Split apart, Rolldown emits a cycle between the two
160
+ // (fingerprint <-> utilCryptoChunk) on this branch, where the
161
+ // detector is no longer bundled into the widget and the module
162
+ // graph is shaped differently. Whichever chunk evaluated first
163
+ // then read the other's module-scope bindings before they were
164
+ // assigned, so the widget died on load — first with
165
+ // "init_dist is not a function", then with isHex reading
166
+ // `.test` of undefined. Same chunk = one evaluation order = no
167
+ // cycle, and it preserves the single-instance property the
168
+ // shared chunk exists for.
158
169
  if (id.includes("packages/util-crypto/dist")) {
159
- return "utilCryptoChunk";
170
+ return sharedBrowserChunkName;
160
171
  }
161
172
  if (id.includes("@noble/hash") || id.includes("@noble/curves")) {
162
173
  return "nobleChunk";