mvp-ai's picture
download
raw
557 Bytes
// transpiles the real register.tsx into an ES module that imports a stub engine library
const fs = require('fs')
const ts = require(process.env.TYPESCRIPT || 'typescript')
const [src, out] = process.argv.slice(2)
const code = fs.readFileSync(src, 'utf8')
const js = ts.transpileModule(code, {
compilerOptions: { module: ts.ModuleKind.ESNext, target: ts.ScriptTarget.ES2022, jsx: ts.JsxEmit.React, jsxFactory: 'h' },
}).outputText.replace(/from ['"]claude-code['"]/g, "from './stub.mjs'")
fs.writeFileSync(out, js)
console.log('compiled', out, js.length)

Xet Storage Details

Size:
557 Bytes
·
Xet hash:
07d2c550cbd3c20e1e145b59631346a711c18dfd159d088b876081bfd955c514

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.