Skip to content

Commit 2a5a6be

Browse files
authored
Merge pull request #34 from presidio-oss/main
fix(build): exclude pino from bundle and optimize build config (#33)
2 parents 659951f + 67e9679 commit 2a5a6be

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,20 @@ import dts from 'bun-plugin-dts'
44
const defaultBuildConfig: BuildConfig = {
55
entrypoints: ['./src/index.ts'],
66
outdir: './dist',
7+
target: 'node',
8+
external: ['@langchain/core', 'pino', 'pino-pretty'],
79
}
810

911
await Promise.all([
1012
Bun.build({
1113
...defaultBuildConfig,
1214
plugins: [dts()],
1315
format: 'esm',
14-
target: 'node',
1516
naming: '[dir]/[name].js',
16-
external: ['@langchain/core'],
1717
}),
1818
Bun.build({
1919
...defaultBuildConfig,
2020
format: 'cjs',
21-
target: 'node',
2221
naming: '[dir]/[name].cjs',
23-
external: ['@langchain/core'],
2422
}),
2523
])

0 commit comments

Comments
 (0)