chore(deps): update all non-major dependencies

This commit is contained in:
alex8088 2025-01-22 01:04:31 +08:00
parent 6c01417909
commit dfe6a3e3f8
5 changed files with 391 additions and 544 deletions

View File

@ -78,29 +78,29 @@
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@swc/core": "^1.6.5",
"@swc/core": "^1.10.9",
"@types/node": "^18.19.39",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"globals": "^15.14.0",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"rollup": "^4.18.0",
"lint-staged": "^15.4.1",
"prettier": "^3.4.2",
"rollup": "^4.31.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-rm": "^1.0.2",
"simple-git-hooks": "^2.11.1",
"tslib": "^2.6.3",
"typescript": "^5.3.3",
"tslib": "^2.8.1",
"typescript": "^5.7.3",
"typescript-eslint": "^8.21.0",
"vite": "^5.3.1"
},
"dependencies": {
"@babel/core": "^7.24.7",
"@babel/plugin-transform-arrow-functions": "^7.24.7",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-arrow-functions": "^7.25.9",
"cac": "^6.7.14",
"esbuild": "^0.21.5",
"magic-string": "^0.30.10",
"picocolors": "^1.0.1"
"magic-string": "^0.30.17",
"picocolors": "^1.1.1"
}
}

906
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -115,7 +115,7 @@ export default function assetPlugin(): Plugin {
const hash = this.emitFile({
type: 'asset',
name: path.basename(file),
source
source: source as unknown as Uint8Array
})
referenceId = `__VITE_NODE_ASSET__${hash}__`
assetCache.set(file, referenceId)

View File

@ -310,7 +310,7 @@ export function bytecodePlugin(options: BytecodeOptions = {}): Plugin | null {
const chunkFileName = path.resolve(outDir, name)
if (bytecodeChunks.includes(name)) {
const bytecodeBuffer = await compileToBytecode(_code)
fs.writeFileSync(path.resolve(outDir, name + 'c'), bytecodeBuffer)
fs.writeFileSync(path.resolve(outDir, name + 'c'), bytecodeBuffer as unknown as Uint8Array)
if (chunk.isEntry) {
if (!removeBundleJS) {
keepBundle(chunkFileName)

View File

@ -29,7 +29,10 @@ export function parseRequest(id: string): Record<string, string> | null {
}
export function getHash(text: Buffer | string): string {
return createHash('sha256').update(text).digest('hex').substring(0, 8)
return createHash('sha256')
.update(text as unknown as Uint8Array)
.digest('hex')
.substring(0, 8)
}
export function toRelativePath(filename: string, importer: string): string {