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

Remove internal vue handling in cloudflare integration #506

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Jan 17, 2025

Changes

Undo the stop gap done in #210, we no longer need this handling as it's fixed in the vue integration.

Testing

Existing tests should pass. There's a vue test.

Docs

n/a. bug fix.

Copy link

changeset-bot bot commented Jan 17, 2025

🦋 Changeset detected

Latest commit: 2022507

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

This PR includes changesets to release 12 packages
Name Type
@astrojs/cloudflare Patch
@test/astro-cloudflare-astro-dev-platform Patch
@test/astro-cloudflare-astro-env Patch
@test/astro-cloudflare-compile-image-service Patch
@test/astro-cloudflare-external-image-service Patch
@test/astro-cloudflare-wasm Patch
@test/astro-cloudflare-no-output Patch
@test/astro-cloudflare-routes-json Patch
@test/astro-cloudflare-with-solid-js Patch
@test/astro-cloudflare-with-svelte Patch
@test/astro-cloudflare-with-vue 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

vite.build ||= {};
vite.build.rollupOptions ||= {};
vite.build.rollupOptions.output ||= {};
// @ts-expect-error
vite.build.rollupOptions.output.banner ||=
'globalThis.process ??= {}; globalThis.process.env ??= {};';

vite.build.rollupOptions.external = _config.vite.build?.rollupOptions?.external ?? [];
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this, and similarly for the vite.ssr.external handling that was in #210, as I don't think this line really affects anything. The default undefined setting is already an empty array.

@bluwy bluwy merged commit ce66003 into main Jan 17, 2025
8 checks passed
@github-actions github-actions bot mentioned this pull request Jan 17, 2025
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.

2 participants