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

fix(cloudflare): dynamic-imports-analyzer #238

Merged
merged 5 commits into from
Apr 22, 2024
Merged

Conversation

alexanderniebuhr
Copy link
Member

Copy link

changeset-bot bot commented Apr 18, 2024

🦋 Changeset detected

Latest commit: 22df2c4

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

This PR includes changesets to release 9 packages
Name Type
@astrojs/cloudflare Patch
@test/astro-cloudflare-astro-dev-platform Patch
@test/astro-cloudflare-external-image-service Patch
@test/astro-cloudflare-no-output Patch
@test/astro-cloudflare-prerender-optimizations Patch
@test/astro-cloudflare-routes-json Patch
@test/astro-cloudflare-wasm Patch
@test/astro-cloudflare-with-solid-js Patch
@test/astro-cloudflare-wrangler-preview-platform Patch

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

@matthewp
Copy link
Contributor

It's up to you to make regex workarounds, just want to pass some caution that this could break if code changes in core, of course.

@alexanderniebuhr alexanderniebuhr marked this pull request as draft April 18, 2024 13:54
@alexanderniebuhr
Copy link
Member Author

Totally valid, we'll need a workaround until core catches up, but I can make it based on AST, which is more robust!

@alexanderniebuhr alexanderniebuhr marked this pull request as ready for review April 19, 2024 13:15
@alexanderniebuhr
Copy link
Member Author

!preview ast

Copy link
Contributor

Snapshots have been released for the following packages:

  • @astrojs/cloudflare@experimental--ast
Publish Log
🦋  warn ===============================IMPORTANT!===============================
🦋  warn Packages will be released under the experimental--ast tag
🦋  warn ----------------------------------------------------------------------
🦋  info npm info @astrojs/cloudflare
🦋  info npm info @astrojs/netlify
🦋  info @astrojs/cloudflare is being published because our local version (0.0.0-ast-20240419160649) has not been published on npm
🦋  warn @astrojs/netlify is not being published because version 5.2.0 is already published on npm
🦋  info Publishing "@astrojs/cloudflare" at "0.0.0-ast-20240419160649"
🦋  success packages published successfully:
🦋  @astrojs/[email protected]
🦋  Creating git tag...
🦋  New tag:  @astrojs/[email protected]
Build Log

> [email protected] build /home/runner/work/adapters/adapters
> turbo run build --filter="@astrojs/*"

• Packages in scope: @astrojs/cloudflare, @astrojs/netlify, @astrojs/test-utils
• Running build in 3 packages
• Remote caching disabled
::group::@astrojs/netlify:build
cache miss, executing f0ca439d5409f69e

> @astrojs/[email protected] build /home/runner/work/adapters/adapters/packages/netlify
> tsc

::endgroup::
::group::@astrojs/cloudflare:build
cache miss, executing 7281f16cac6c1bb3

> @astrojs/[email protected] build /home/runner/work/adapters/adapters/packages/cloudflare
> tsc

::endgroup::

 Tasks:    2 successful, 2 total
Cached:    0 cached, 2 total
  Time:    3.705s 

Copy link
Member

@Fryuni Fryuni left a comment

Choose a reason for hiding this comment

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

AST handling looks so much better than regex <3

Definitely gives me more confidence

@alexanderniebuhr alexanderniebuhr merged commit 1927f94 into main Apr 22, 2024
8 checks passed
@alexanderniebuhr alexanderniebuhr deleted the build-error branch April 22, 2024 05:32
@github-actions github-actions bot mentioned this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build Fails with @astrojs/[email protected]
3 participants