Skip to content

Commit d03acf3

Browse files
committed
revert
1 parent 8b770ca commit d03acf3

File tree

1 file changed

+3
-39
lines changed

1 file changed

+3
-39
lines changed

packages/builders/src/base-builder.ts

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ export const OPTIONS = handler;`;
789789
absWorkingDir: this.config.workingDir,
790790
bundle: true,
791791
jsx: 'preserve',
792-
format: 'esm',
792+
format: 'cjs',
793793
platform: 'node',
794794
conditions: ['import', 'module', 'node', 'default'],
795795
target: 'es2022',
@@ -809,44 +809,8 @@ export const OPTIONS = handler;`;
809809
],
810810
sourcemap: false,
811811
mainFields: ['module', 'main'],
812-
// Externalize Node.js built-ins with node: prefix so bundlers
813-
// (webpack/turbopack) know they're server-only and won't try
814-
// to bundle them for the browser
815-
external: [
816-
'node:fs',
817-
'node:path',
818-
'node:os',
819-
'node:crypto',
820-
'node:stream',
821-
'node:buffer',
822-
'node:util',
823-
'node:events',
824-
'node:http',
825-
'node:https',
826-
'node:url',
827-
'node:querystring',
828-
'node:zlib',
829-
'node:async_hooks',
830-
'node:module',
831-
],
832-
// Rewrite bare Node.js imports to use node: prefix
833-
alias: {
834-
fs: 'node:fs',
835-
path: 'node:path',
836-
os: 'node:os',
837-
crypto: 'node:crypto',
838-
stream: 'node:stream',
839-
buffer: 'node:buffer',
840-
util: 'node:util',
841-
events: 'node:events',
842-
http: 'node:http',
843-
https: 'node:https',
844-
url: 'node:url',
845-
querystring: 'node:querystring',
846-
zlib: 'node:zlib',
847-
async_hooks: 'node:async_hooks',
848-
module: 'node:module',
849-
},
812+
// Don't externalize anything - bundle everything including workflow packages
813+
external: [],
850814
});
851815

852816
this.logEsbuildMessages(result, 'webhook bundle creation');

0 commit comments

Comments
 (0)