in aws_lambda_builders/workflows/nodejs_npm_esbuild/esbuild.py [0:0]
def build_esbuild_args_from_config(self) -> "EsbuildCommandBuilder":
"""
Build arguments configured in the command config (e.g. template.yaml)
:rtype: EsbuildCommandBuilder
:return: An instance of the command builder
"""
args = []
for config_key, config_value in self._bundler_config.items():
if config_key in NON_CONFIGURABLE_VALUES:
LOG.debug(
"'%s=%s' was not a used configuration since AWS Lambda Builders "
"sets these values for the code to be correctly consumed by AWS Lambda",
config_key,
config_value,
)
continue
if config_key in ESBUILD_IGNORE_VALUES:
continue
configuration_type_callback = self._get_config_type_callback(config_value)
LOG.debug("Configuring the parameter '%s=%s'", config_key, config_value)
args.extend(configuration_type_callback(config_key, config_value))
LOG.debug("Found the following args in the config: %s", str(args))
self._command.extend(args)
return self