初始仓库迁移
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-04 23:57:06 +08:00
parent 80986b790d
commit c49c64896a
18446 changed files with 532435 additions and 2 deletions

16
scripts/vite-cli.mjs Normal file
View File

@@ -0,0 +1,16 @@
import crypto from 'node:crypto';
if (crypto.webcrypto) {
if (typeof crypto.getRandomValues !== 'function') {
crypto.getRandomValues = crypto.webcrypto.getRandomValues.bind(crypto.webcrypto);
}
if (!globalThis.crypto || typeof globalThis.crypto.getRandomValues !== 'function') {
Object.defineProperty(globalThis, 'crypto', {
value: crypto.webcrypto,
configurable: true,
});
}
}
await import('../node_modules/vite/bin/vite.js');