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

Set external: true when loading astro config #11819

Merged
merged 3 commits into from
Sep 2, 2024
Merged

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Aug 22, 2024

Changes

Set external: true when loading the astro config, this means Vite won't process any locally-linked dependencies anymore.

Previously, locally-linked dependencies were automatically "no-externalized", however with external: true, we disable this behaviour, so that all dependencies are "externalized" and hence imported by the nodejs runtime instead.

closes #11621

Testing

Existing tests should pass.

Docs

Added a changeset explaining the change. I don't expect this to be a big breaking change, except potentially for integrations authors or monorepos, they may need to be aware of this change.

Copy link

changeset-bot bot commented Aug 22, 2024

🦋 Changeset detected

Latest commit: bcb2ab8

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 pkg: astro Related to the core `astro` package (scope) semver: major Change triggers a `major` release labels Aug 22, 2024
Copy link
Contributor

@github-actions github-actions bot left a 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.

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.

🎉🎉🎉🎉

This was blocking some magic that I wanted to make but couldn't fix from an integration since it was too late by then.

@bluwy bluwy dismissed github-actions[bot]’s stale review August 27, 2024 14:57

base branch is next (still awaiting docs review before merging)

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Sorry to be holding you up, @bluwy ! There's just one bit of one sentence that feels like it kind of got away from you. 😄 So just take a peek there and make sure it reads smoothly to you.

A couple of minor tweaks for readability, but good to go!

.changeset/moody-waves-think.md Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a 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.

@bluwy bluwy merged commit 2bdde80 into next Sep 2, 2024
13 checks passed
@bluwy bluwy deleted the plt-1631-config-external-true branch September 2, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) semver: major Change triggers a `major` release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants