diff --git a/packages/esbuild/esbuild.ts b/packages/esbuild/esbuild.ts index f4c78b11..3e3a7bfd 100644 --- a/packages/esbuild/esbuild.ts +++ b/packages/esbuild/esbuild.ts @@ -9,16 +9,17 @@ export class Esbuild implements ILocalBundling { // Override with default options Object.assign(this.options, { - logLevel: options.logLevel ?? "info", - sourcemap: options.sourcemap ?? false, - bundle: options.bundle ?? true, - minify: options.minify ?? true, - platform: options.platform ?? "node", + logLevel: "info", + sourcemap: false, + bundle: true, + minify: true, + platform: "node", // Do not minify identifiers, otherwise the exported `handler` function name gets minified failing to start // the lambda minifyIdentifiers: false, - minifyWhitespace: options.minifyWhitespace ?? true, - minifySyntax: options.minifySyntax ?? true, + minifyWhitespace: true, + minifySyntax: true, + ...options, }); }