-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix(assets): Remove TLA by making compiledContent async #11782
Conversation
🦋 Changeset detectedLatest commit: c0185fa 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is blocked because it contains a major
changeset. A reviewer will merge this at the next release if approved.
Thanks @Princesseuh - just checking this is PLT-1323? |
It is, yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was also wondering if it's worth caching the html
, but maybe it's not common to do something like that.
* fix(assets): Remove TLA by making compiledContent async * fix: actually use the functions I just added lol * chore: changeset
How do we fix this in the v4? I'm on Astro v4.14.5 w/ Vercel serverless and getting the error .vercel/output/_functions/chunks/how-to-update-dependencies_SGjbVBJN.mjs:62:16: Updating the dependencies of a pr... Top-level await is not available in the configured target environment ("es2020") |
Changes
This makes
compiledContent()
async so that we can avoid the top level await in our Markdown modules. This fixes many issues regarding bundling image services where due to a Rollup bug (rollup/rollup#4708), Node would suddenly exit with no error messagesTesting
Tests should pass!
Docs
Will do!