This commit is contained in:
ZhuJW
2026-07-10 18:55:55 +08:00
commit fce40c7d6c
317 changed files with 170079 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { resolve } from 'node:path'
import * as process from 'node:process'
import { transformSync } from 'esbuild'
import fsExtra from 'fs-extra'
const themeConfig = resolve(process.cwd(), './src/config/default-setting.ts')
const code = fsExtra.readFileSync(themeConfig, 'utf-8')
function toJs(code: string) {
const res = transformSync(code, {
target: 'esnext',
loader: 'ts',
})
console.log(res.code)
}
toJs(code)