Skip to content

Commit 4a05d8b

Browse files
fix(cli): guard options before setting build in trigger-config-strip (#5165)
1 parent 7e40289 commit 4a05d8b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/cli-v3/src/config.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ export function configPlugin(resolvedConfig: ResolvedConfig): esbuild.Plugin | u
132132
? $mod.exports.config.$args[0]
133133
: $mod.exports.config;
134134

135-
options.build = {};
135+
if (options && typeof options === "object") {
136+
options.build = {};
137+
}
136138

137139
// Remove export resolveEnvVars function as well
138140
$mod.exports.resolveEnvVars = undefined;

0 commit comments

Comments
 (0)