Skip to content

Commit

Permalink
Don't add analyze plugin when buildOptions == nil
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz834 committed Sep 10, 2023
1 parent cc74cd0 commit 0c18f50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/cli/cli_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1141,12 +1141,13 @@ func runImpl(osArgs []string) int {

osArgs, analyze := filterAnalyzeFlags(osArgs)
buildOptions, transformOptions, extras, err := parseOptionsForRun(osArgs)
if analyze != analyzeDisabled {
addAnalyzePlugin(buildOptions, analyze, osArgs)
}

switch {
case buildOptions != nil:
if analyze != analyzeDisabled {
addAnalyzePlugin(buildOptions, analyze, osArgs)
}

// Read the "NODE_PATH" from the environment. This is part of node's
// module resolution algorithm. Documentation for this can be found here:
// https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders
Expand Down

0 comments on commit 0c18f50

Please sign in to comment.