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

Refactor Svelte preprocess integration handling #5901

Merged
merged 8 commits into from
Jan 19, 2023
Merged

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Jan 19, 2023

Changes

Fixes #5899

The Svelte integration beta uses vitePreprocess to preprocess files, this will cause users that migrate (especially those installed hoisted like npm) to lose VSCode intellisense in Svelte files.

This PR add this migration guide, and changes the fallback preprocess logic to prevent vitePreprocess added twice, which might be wasteful (NOTE: Double preprocessing was an issue for pnpm users before)

Testing

Tested manually for the astro add svelte tailwind command in the examples which still work.

The existing test should pass as they're not affected by the breaking change.

Docs

I've updated the Svelte integration README for information of getting intellisense to work too.

@bluwy bluwy requested a review from a team as a code owner January 19, 2023 09:37
@changeset-bot
Copy link

changeset-bot bot commented Jan 19, 2023

🦋 Changeset detected

Latest commit: 47be52c

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) pkg: example Related to an example package (scope) pkg: svelte Related to Svelte (scope) pkg: integration Related to any renderer integration (scope) semver: minor Change triggers a `minor` release labels Jan 19, 2023
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 minor changeset. A reviewer will merge this at the next release if approved.

@bluwy bluwy mentioned this pull request Jan 19, 2023
1 task
@matthewp matthewp dismissed github-actions[bot]’s stale review January 19, 2023 13:13

Going out with the next major

@matthewp matthewp merged commit a342a48 into main Jan 19, 2023
@matthewp matthewp deleted the svelte-change branch January 19, 2023 13:13
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) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: svelte Related to Svelte (scope) semver: minor Change triggers a `minor` release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<style lang="scss"> in svelte file.
2 participants