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 target for Deno #7687

Merged
merged 8 commits into from
Jul 24, 2023
Merged

Conversation

kwhinnery
Copy link
Contributor

@kwhinnery kwhinnery commented Jul 17, 2023

Changes

Updates the build target for esbuild from es2020 to esnext to allow for more advanced language features that are available in Deno.

Testing

Added a test that includes a language feature supported in esnext, in this case a top-level await.

Docs

This change doesn't require updates to the documentation - a Deno user would reasonably assume that all runtime features that work in Deno would work during the Astro build process as well.

@changeset-bot
Copy link

changeset-bot bot commented Jul 17, 2023

🦋 Changeset detected

Latest commit: 7360ae0

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Jul 17, 2023
@kwhinnery kwhinnery marked this pull request as ready for review July 18, 2023 14:06
@kwhinnery
Copy link
Contributor Author

There's a set of tests failing in an area of the code I didn't touch - are we seeing this on other PRs as well? Thanks!

@Princesseuh
Copy link
Member

There's a set of tests failing in an area of the code I didn't touch - are we seeing this on other PRs as well? Thanks!

Yep, sorry - my fault. We had a regression in our Markdoc integration. I went ahead and updated your branch.

Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is probably fine as Deno 1.0 already supports many modern syntax from the start 🤔

@kwhinnery
Copy link
Contributor Author

Hey team! Any chance we could see this merged and shipped soon? Would love to update our template app.

@bluwy
Copy link
Member

bluwy commented Jul 24, 2023

I was hoping to get another eye on this from another maintainer, in case I miss something, but looks like it should be safe. Will merge this one.

@bluwy bluwy merged commit 0a1b333 into withastro:main Jul 24, 2023
@astrobot-houston astrobot-houston mentioned this pull request Jul 24, 2023
@kwhinnery
Copy link
Contributor Author

Thanks a ton @bluwy!

@kwhinnery kwhinnery deleted the deno-esbuild-target branch July 25, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants