This commit is contained in:
xiongxiao
2026-03-24 02:57:13 +08:00
committed by cnb
parent 36a54652c1
commit 8c8cf1aadf
14 changed files with 514 additions and 119 deletions

19
bun.config.ts Normal file
View File

@@ -0,0 +1,19 @@
// @ts-check
// https://bun.sh/docs/bundler
// @ts-ignore
import pkg from './package.json';
// bun run src/index.ts --
const external = ['bun'];
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: ['./src/oldindex.ts'],
outdir: './dist',
naming: {
entry: 'envision.js',
},
external: external,
define: {
ENVISION_VERSION: JSON.stringify(pkg.version),
},
});