Skip to content

Revert "fix #1874: node defaults to --packages=external"#3820

Merged
evanw merged 1 commit intomainfrom
revert/1874
Jul 2, 2024
Merged

Revert "fix #1874: node defaults to --packages=external"#3820
evanw merged 1 commit intomainfrom
revert/1874

Conversation

@evanw
Copy link
Copy Markdown
Owner

@evanw evanw commented Jul 2, 2024

This PR reverts the recent change in version 0.22.0 that made --packages=external the default behavior with --platform=node. The default is now back to --packages=bundle.

I've just been made aware that Amazon doesn't pin their dependencies in their "AWS CDK" product, which means that whenever esbuild publishes a new release, many people (potentially everyone?) using their SDK around the world instantly starts using it without Amazon checking that it works first. This change in version 0.22.0 happened to break their SDK. I'm amazed that things haven't broken before this point. This revert attempts to avoid these problems for Amazon's customers. Hopefully Amazon will pin their dependencies in the future.

In addition, this is probably a sign that esbuild is used widely enough that it now needs to switch to a more complicated release model. I may have esbuild use a beta channel model for further development.

Closes #3819

@evanw evanw merged commit ac7fd04 into main Jul 2, 2024
@evanw evanw deleted the revert/1874 branch July 2, 2024 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aws lambda build issue with esbuild v0.22.0

1 participant