File tree Expand file tree Collapse file tree
common/config/subspaces/default
libraries/module-minifier/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
22{
3- "pnpmShrinkwrapHash" : " be66b5ed1c7f3c2a1db832792d98db6bb436ff17 " ,
3+ "pnpmShrinkwrapHash" : " 8cea08431b1a848463c751666dcd35e9533ea73d " ,
44 "preferredVersionsHash" : " 029c99bd6e65c5e1f25e2848340509811ff9753c"
55}
Original file line number Diff line number Diff line change 1+ // Polyfill globalThis.crypto for Node 18, which doesn't expose it by default.
2+ // This is needed by serialize-javascript, which calls crypto.randomBytes() at module load time.
3+ // All Node 18 versions have node:crypto (the module)
4+ // All Node 18 versions have globalThis.crypto (but it's the limited Web Crypto API)
5+ // The bug is that serialize-javascript@7.0.3 assumes globalThis.crypto.randomBytes() exists,
6+ // which only works in Node 20+ where the global was enhanced
7+ if ( ! globalThis . crypto ) {
8+ const { webcrypto } = require ( 'node:crypto' ) ;
9+ globalThis . crypto = webcrypto ;
10+ }
Original file line number Diff line number Diff line change 11{
2- "extends" : " local-node-rig/profiles/default/config/jest.config.json"
2+ "extends" : " local-node-rig/profiles/default/config/jest.config.json" ,
3+ "setupFiles" : [" <rootDir>/config/jest-setup.js" ]
34}
You can’t perform that action at this time.
0 commit comments