From 0c7ce8f6ecf15c4201a1e1ec6b595198905d695b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Acosta?= Date: Tue, 26 Sep 2023 14:57:28 -0300 Subject: [PATCH] fix: custom esbuild.config.js loader (#497) --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 4710d99..f8a7ba9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -292,6 +292,8 @@ class EsbuildServerlessPlugin implements ServerlessPlugin { } private getBuildOptions() { + if (this.buildOptions) return this.buildOptions; + const DEFAULT_BUILD_OPTIONS: Partial = { concurrency: Infinity, zipConcurrency: Infinity,