Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Remove comments

Tomas Valentac3a08608da91
diff --git a/api-service/playground/src/deployments/packaging.ts b/api-service/playground/src/deployments/packaging.ts
index 89e45a0ea..ceab439c9 100644
--- a/api-service/playground/src/deployments/packaging.ts
+++ b/api-service/playground/src/deployments/packaging.ts
@@ -74,7 +74,7 @@ export async function packageFunction(session: Session) {
// Bundle the code and dependencies via https://github.com/netlify/zip-it-and-ship-it and dump the base64 string representationto a separate file.
const bundling = await createSessionProcess({
manager: session.process,
- cmd: `esbuild ${rootFile.path} --bundle --target=node18 --platform=node --minify --outfile=${outfilePath} && zip ${zipName} ${outfileName} && base64 -w 0 ${zipName} > ${dumpPath}`,
+ cmd: `esbuild ${rootFile.path} --bundle --target=node18 --legal-comments=none --platform=node --minify --outfile=${outfilePath} && zip ${zipName} ${outfileName} && base64 -w 0 ${zipName} > ${dumpPath}`,
rootdir: bundleDir,
onStderr: o => out.push(o),
onStdout: o => out.push(o),