Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Remove comments in bundled JS

Tomas Valentac92997b2964c
diff --git a/packages/cli/tsup.config.js b/packages/cli/tsup.config.js
index ac6922e63..ff7c76948 100644
--- a/packages/cli/tsup.config.js
+++ b/packages/cli/tsup.config.js
@@ -1,4 +1,4 @@
-import {defineConfig} from 'tsup'
+import { defineConfig } from 'tsup'
import * as packageJSON from './package.json'
@@ -13,5 +13,9 @@ export default defineConfig({
clean: true,
noExternal: Object.keys(packageJSON.dependencies).filter(
f => !excludedPackages.includes(f)
- )
+ ),
+ esbuildOptions: (options) => {
+ options.legalComments = 'none'
+ return options
+ },
})
diff --git a/packages/js-sdk/tsup.config.js b/packages/js-sdk/tsup.config.js
index babe83860..806167740 100644
--- a/packages/js-sdk/tsup.config.js
+++ b/packages/js-sdk/tsup.config.js
@@ -10,4 +10,8 @@ export default defineConfig({
entry: {
index: './src/index.ts',
},
+ esbuildOptions: (options) => {
+ options.legalComments = 'none'
+ return options
+ },
})