Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update esbuild config to use ESM #934

Merged
merged 6 commits into from
Nov 16, 2024
Merged

Update esbuild config to use ESM #934

merged 6 commits into from
Nov 16, 2024

Conversation

jaredcwhite
Copy link
Member

@jaredcwhite jaredcwhite commented Nov 2, 2024

Also provide an switchover via bin/bt esbuild update command — it will add "type": "module" to your package.json file, update the esbuild & postcss configs to ESM for you, and also upgrade to the latest esbuild and glob package versions!

Note: this does require a minimum Node version of 20.6, previous 20.x releases were missing proper support for import.meta.resolve which we need.

@jaredcwhite jaredcwhite temporarily deployed to esbuild-update-to-esm - bridgetown-beta PR #934 November 16, 2024 18:54 — with Render Destroyed
@jaredcwhite jaredcwhite temporarily deployed to esbuild-update-to-esm - bridgetown-api PR #934 November 16, 2024 18:54 — with Render Destroyed
@jaredcwhite jaredcwhite merged commit b29b51c into main Nov 16, 2024
3 checks passed
@jaredcwhite jaredcwhite deleted the esbuild-update-to-esm branch November 16, 2024 19:01
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.

1 participant