Commit fae09e7
fix(studio): export webcrypto from node-polyfills to fix build
The studio Vite build aliases 'crypto' to mocks/node-polyfills.ts.
@objectstack/runtime imports `webcrypto` from 'crypto', so the polyfill
must export it. Map webcrypto to globalThis.crypto (Web Crypto API)
which provides the same SubtleCrypto/getRandomValues surface in browsers.
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/49abf5ad-ca45-4ce6-b799-657ad8f2cd69
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent cb3b6f1 commit fae09e7
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
0 commit comments