init
This commit is contained in:
19
bun.config.ts
Normal file
19
bun.config.ts
Normal 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),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user