Description of changes:
Since making the change to accept any flags for esbuild, there is an issue with esbuild trying to use flags that are not related to it. This changes forces the esbuild command builder to ignore those unrelated flags.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available: https://github.com/aws/aws-sam-build-images/issues/90 https://github.com/aws/aws-sam-cli/issues/5236
Description of changes: Since making the change to accept any flags for esbuild, there is an issue with esbuild trying to use flags that are not related to it. This changes forces the esbuild command builder to ignore those unrelated flags.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.