From 420ccdceadff8658803e02bb6144e853c8767a20 Mon Sep 17 00:00:00 2001 From: Michael Gangolf Date: Tue, 25 Jun 2024 05:23:34 +0200 Subject: [PATCH] chore: fix webpack command name issue (#14067) --- cli/hooks/webpack.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/hooks/webpack.js b/cli/hooks/webpack.js index cd9c06a36a8..943e87c29d6 100644 --- a/cli/hooks/webpack.js +++ b/cli/hooks/webpack.js @@ -35,6 +35,9 @@ exports.init = (logger, config, cli) => { cli.on('cli:command-loaded', (hookData) => { const command = hookData.command; commandName = command.name; + if (typeof command.name === 'function') { + commandName = command.name(); + } }); cli.on('cli:post-validate', () => {