feat: clear rollup

This commit is contained in:
2025-04-24 12:42:02 +08:00
parent c2e8818975
commit 6827945446
13 changed files with 285 additions and 361 deletions

18
bun.config.mjs Normal file
View File

@@ -0,0 +1,18 @@
// @ts-check
// https://bun.sh/docs/bundler
import pkg from './package.json' assert { type: 'json' };
// bun run src/index.ts --
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: ['./src/index.ts'],
outdir: './dist',
naming: {
entry: 'app.mjs',
},
define: {
ENVISION_VERSION: JSON.stringify(pkg.version),
},
env: 'ENVISION_*',
});