mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
10 lines
446 B
TypeScript
10 lines
446 B
TypeScript
import { objectProperty, identifier, stringLiteral } from '@babel/types'
|
|
import { runtimeInfo } from '../compilation-info/runtime'
|
|
import { commitHash } from '../compilation-info/git'
|
|
import { InjectMetadataAction } from './types'
|
|
|
|
export const injectCoreInfo: InjectMetadataAction = () => [
|
|
objectProperty(identifier('commitHash'), stringLiteral(commitHash)),
|
|
objectProperty(identifier('coreVersion'), stringLiteral(runtimeInfo.version)),
|
|
]
|