Skip to content

Commit

Permalink
naive attempt
Browse files Browse the repository at this point in the history
fixes #4883
  • Loading branch information
louis-bompart committed Jan 31, 2025
1 parent 192cf67 commit 26d5cd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/bueno/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function nodeCjs() {
return build({
...base,
platform: 'node',
packages: 'external',
outfile: 'dist/bueno.js',
format: 'cjs',
});
Expand All @@ -29,6 +30,7 @@ function nodeEsm() {
return build({
...base,
platform: 'node',
packages: 'external',
outfile: 'dist/bueno.esm.js',
format: 'esm',
});
Expand Down
2 changes: 1 addition & 1 deletion packages/headless/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ const nodeEsm = Object.entries(useCaseEntries).map((entry) => {
outfile,
sourcemap: true,
format: 'esm',
external: ['pino'],
mainFields: ['module', 'main'],
},
dir
Expand All @@ -317,6 +316,7 @@ async function buildNodeConfig(options, outDir) {
...base,
metafile: true,
platform: 'node',
packages: 'external',
treeShaking: true,
plugins: [
alias({
Expand Down

0 comments on commit 26d5cd5

Please sign in to comment.