From a47ef0ee78e2bf890a1f56c49fc494a45c24a079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Tue, 19 Jul 2022 17:21:42 +0800 Subject: [PATCH] Remove buildOptions access before initialize --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 9f4bb76c..355d44b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,8 +82,8 @@ class EsbuildServerlessPlugin implements ServerlessPlugin { this.preLocal = preLocal.bind(this); this.bundle = bundle.bind(this); - this.outputWorkFolder = this.buildOptions.outputWorkFolder || WORK_FOLDER; - this.outputBuildFolder = this.buildOptions.outputBuildFolder || BUILD_FOLDER; + this.outputWorkFolder = this.outputWorkFolder || WORK_FOLDER; + this.outputBuildFolder = this.outputBuildFolder || BUILD_FOLDER; this.workDirPath = path.join(this.serviceDirPath, this.outputWorkFolder); this.buildDirPath = path.join(this.workDirPath, this.outputBuildFolder);