Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions lib/compiler/helpers/get-webpack-config-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ export function getWebpackConfigPath(
appName,
);

webpackPath =
typeof builder === 'object' && builder?.type === 'webpack'
? builder.options?.configPath
: undefined;
return webpackPath;
if (typeof builder === 'object' && builder?.type === 'webpack') {
const webpackConfigPath = builder.options?.configPath;
if (webpackConfigPath) {
Comment thread
zendy199x marked this conversation as resolved.
return webpackConfigPath;
}
// If builder.type is 'webpack' but no config path is specified, return undefined
// to let webpack use its default behavior
Comment thread
zendy199x marked this conversation as resolved.
return undefined;
}
Comment thread
zendy199x marked this conversation as resolved.
return undefined;
}