-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Conversation
🦋 Changeset detectedLatest 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 |
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.
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 was blocking some magic that I wanted to make but couldn't fix from an integration since it was too late by then.
base branch is next (still awaiting docs review before merging)
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.
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!
Co-authored-by: Sarah Rainsberger <[email protected]>
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.
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.