We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 659951f + 67e9679 commit 2a5a6beCopy full SHA for 2a5a6be
build.ts
@@ -4,22 +4,20 @@ import dts from 'bun-plugin-dts'
4
const defaultBuildConfig: BuildConfig = {
5
entrypoints: ['./src/index.ts'],
6
outdir: './dist',
7
+ target: 'node',
8
+ external: ['@langchain/core', 'pino', 'pino-pretty'],
9
}
10
11
await Promise.all([
12
Bun.build({
13
...defaultBuildConfig,
14
plugins: [dts()],
15
format: 'esm',
- target: 'node',
16
naming: '[dir]/[name].js',
- external: ['@langchain/core'],
17
}),
18
19
20
format: 'cjs',
21
22
naming: '[dir]/[name].cjs',
23
24
25
])
0 commit comments